trilead-ssh2连接不上centos服务器Caused by: java.io.IOException: Cannot negotiate, proposals do not match.

导致此问题的原因是ssh升级后,为了安全,默认不在采用原来一些加密算法,我们手工添加进去即可。

1. 步骤一

修改ssh的配置文件 /etc/ssh/sshd_config
搜索KexAlgorithms,改为

KexAlgorithms diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group1-sha1,[email protected]

2. 重启sshd服务

执行以下命令,重启sshd服务后,即可正常连接

service sshd restart

猜你喜欢

转载自blog.csdn.net/qq_39997939/article/details/127483154