当我尝试通过 java 代码/应用程序登录 AIX 服务器时,出现以下异常,
INFO: J2SSH:KEY_EXCHANGE_FAILURE
com.maverick.ssh.SshException: EOF received from remote side [Unknown cause]
at com.maverick.ssh2.TransportProtocol.b(Unknown Source)
at com.maverick.ssh2.TransportProtocol.j(Unknown Source)
at com.maverick.ssh2.TransportProtocol.nextMessage(Unknown Source)
at com.maverick.ssh.components.jce.DiffieHellmanGroup1Sha1.performClientExchange(Unknown Source)
at com.maverick.ssh2.TransportProtocol.e(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)
服务器详细信息:
我上网冲浪,但无法得到这个问题的明确答案。请有人帮助我。提前致谢。
有问题的 java 代码正在使用来自 SSHTOOLS Limited 的 J2SSH Maverick API,并且在密钥交换期间抛出异常。此特定错误意味着远程服务器在执行密钥交换时断开连接。
造成这种情况的潜在原因有很多。服务器很可能不喜欢密钥交换消息中的某些内容并断开连接,甚至出现段错误。解决方案是确保您使用上述 API 的最新版本,如果问题仍然存在,请联系该公司寻求支持。