com.maverick.ssh.SshException:从远程端收到 EOF [未知原因]

问题描述 投票:0回答:1

当我尝试通过 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)            

服务器详细信息:

  • 服务器类型:AIX
  • 连接方式:SSH
  • 身份验证:基于密码的身份验证。不是基于密钥的。

我上网冲浪,但无法得到这个问题的明确答案。请有人帮助我。提前致谢。

exception authentication ssh aix eof
1个回答
0
投票

有问题的 java 代码正在使用来自 SSHTOOLS Limited 的 J2SSH Maverick API,并且在密钥交换期间抛出异常。此特定错误意味着远程服务器在执行密钥交换时断开连接。

造成这种情况的潜在原因有很多。服务器很可能不喜欢密钥交换消息中的某些内容并断开连接,甚至出现段错误。解决方案是确保您使用上述 API 的最新版本,如果问题仍然存在,请联系该公司寻求支持。

© www.soinside.com 2019 - 2024. All rights reserved.