0

I'm using ssh2-sftp-client to list files and I'm coming across this issue:

list: Packet length 281213 exceeds max length of 262144

Looks like ssh2-sftp-client is a wrapper for the library ssh2

When I look the source code for ssh2, I see the max packet size defined here: https://github.com/mscdex/ssh2/blob/master/lib/protocol/SFTP.js#L222

Is there any option I can pass when I call list from ssh2-sftp-client to change the max packet size to avoid this issue?

RJK
  • 226
  • 1
  • 6
  • 22
  • Can you connect to the SFTP server using an interactive SFTP program like the `sftp` command-line utility? Errors about the SFTP packet size sometimes mean there's a problem with the SFTP server. See [here](https://stackoverflow.com/q/8250379/13317) for example. – Kenster Sep 07 '22 at 19:55

0 Answers0