当我尝试使用“com.enterprisedt.net.ftp.ssh.SSHFTPClient”类(edtFTPj/PRO - 商业 Java 文件传输客户端)连接到 SFTP 远程主机时,出现异常“消息存储已达到 EOF” 。
我能够使用相同的代码成功连接到另一个远程主机进行 SFTP。
是否有任何特定于导致问题的特定主机的配置?如果是这样,有什么方法可以确认吗?除了此异常消息之外,我没有任何其他日志。但是,我可以更改代码以尝试任何建议的调试选项。
请注意,我不能使用其他 SFTP 库,因为我现有的代码已经在使用这个库。
com.enterprisedt.net.j2ssh.authentication.AuthenticationProtocolException: Failed to read messages
at com.enterprisedt.net.j2ssh.authentication.AuthenticationProtocolClient.a(AuthenticationProtocolClient.java:265)
Caused by: com.enterprisedt.net.j2ssh.transport.MessageStoreEOFException: The message store has reached EOF
at com.enterprisedt.net.j2ssh.transport.SshMessageStore.getMessage(SshMessageStore.java:177)
at com.enterprisedt.net.j2ssh.transport.SshMessageStore.getMessage(SshMessageStore.java:110)
at com.enterprisedt.net.j2ssh.authentication.AuthenticationProtocolClient.a(AuthenticationProtocolClient.java:261)
... 31 more