Hi,
I am trying to do large file transfers with sftp_write() of libssh.
For file size near to and greater than 300 KB, I get the following error:
[2015/08/18 11:27:27.830293, 1] channel_write_common: channel_write wrote
32758 bytes
[2015/08/18 11:27:27.833793, 1] channel_write_common: channel_write wrote
32758 bytes
[2015/08/18 11:27:27.836293, 1] channel_write_common: channel_write wrote
30306 bytes
[2015/08/18 11:27:27.839293, 2] ssh_channel_read_timeout: Read (4) buffered :
0 bytes. Window: 1279983
[2015/08/18 11:27:27.840793, 1] sftp_packet_read: Short sftp packet!
The bytes written is -1
[2015/08/18 11:27:27.845293, 1] channel_write_common: Remote channel is closed
The byte written is obtained from the following code segment:
nwritten = sftp_write(file, buffer, bytes_read);
printf("The bytes written is %d\n",nwritten);
Is there any limit for the ssh transfer using sftp_write() ? I need to
transfer large files using sftp. How is this possible ?
Thanks & Regards
Gigin Jose