HI, We are using edtFTPj/PRO version 1.3.0 to upload a few hundred image files. Some image files are really big
around 12M - 20M. A lot of times we had issues "Unexpected server response The SFTP connection has been closed" after successfully uploading around 50 files (some files are also big around 12M to 20M Bytes).
I checked this site, and seems to me someone also have this kind issue, and they fixed this issues by setting the setMaxPacketSize to 32767. I did same thing but nothing helps.
Here are some traceprint:
Could not transfer IO Exception (put) file: Unexpected server response
java.io.IOException: Unexpected server response
at com.enterprisedt.net.j2ssh.sftp.SftpSubsystemClient.A(Unknown Source)
at com.enterprisedt.net.j2ssh.sftp.SftpSubsystemClient.writeFile(Unknown Source)
at com.enterprisedt.net.j2ssh.sftp.SftpFileOutputStream.write(Unknown Source)
at com.enterprisedt.net.j2ssh.SftpClient.A(Unknown Source)
at com.enterprisedt.net.j2ssh.SftpClient.put(Unknown Source)
at com.enterprisedt.net.j2ssh.SftpClient.put(Unknown Source)
at com.enterprisedt.net.ftp.ssh.SSHFTPClient.put(Unknown Source)
and at the sshlog, there are some message like:
isconnecting: Protocol error: expected packet type 30, got 94
Apr 18 19:15:10 enzo sftp-server[6824]: [ID 800047 local2.info] sftp-server finished.
Any user has similar problems, and how to fix this? Thanks.