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?