当我的应用程序尝试连接到特定交换机时,我遇到异常。
com.jcraft.jsch.JSchException: Algorithm negotiation fail
可以连接到其他交换机,但是一个特定的交换机发生故障。 可能的原因是什么? 我在这行代码中遇到异常:
session.connect(30000);
我的日志输出:
null Connecting to NDELEVDA0001 port 22
null Connection established
null Remote version string: SSH-2.0-OpenSSH_7.2 FIPS
null Local version string: SSH-2.0-JSCH-0.1.43
null CheckCiphers: aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256
null aes256-ctr is not available.
null aes192-ctr is not available.
null aes256-cbc is not available.
null aes192-cbc is not available.
null arcfour256 is not available.
null SSH_MSG_KEXINIT sent
null SSH_MSG_KEXINIT received
null Disconnecting from NDELEVDA0001 port 22
com.jcraft.jsch.JSchException: Algorithm negotiation fail