当我能够通过 FileZilla 连接时,我无法从 SFTP 文件源中提取文件

I am not able to pull files from SFTP file source while I am able to connect through FileZilla

我在日志中收到“无法协商传输组件”。有没有人知道可能是什么原因,因为它似乎不是任何代码方面的问题。

提前致谢。

Failed to negotiate a transport component [aes192-cbc] [arcfour] [Unknown cause] 
  at com.maverick.ssh2.TransportProtocol.B(Unknown Source)
  at com.maverick.ssh2.TransportProtocol.C(Unknown Source)
  at com.maverick.ssh2.TransportProtocol.processMessage(Unknown Source)
  at com.maverick.ssh2.TransportProtocol.startTransportProtocol(Unknown Source)
  at com.maverick.ssh2.Ssh2Client.connect(Unknown Source)
  at com.maverick.ssh.SshConnector.connect(Unknown Source)
  at com.maverick.ssh.SshConnector.connect(Unknown Source)

服务器仅支持"arcfour"密码,而您的客户端仅支持"aes192-cbc"。

j2ssh-maverick 也实现了 "arcfour"。您可以使用 JCEComponentManager.installArcFourCiphers.

启用它

但请注意 "arcfour" 是一种弱密码,您应该尽可能避免使用它。考虑升级服务器。