SecureCRT出现Key exchange failed.No compatible key exchange method. 错误解决方法

SecureCRT出现Key exchange failed.No compatible key exchange method. 如下

Key exchange failed.
No compatible key exchange method. The server supports these methods: curve25519-sha256,[email protected],diffie-hellman-group-exchange-sha256

解决方法:

方法一:

升级SecureCRT版本,我的升级到了 SecureCRT 9.4 亲测有效,或者使用其他连接工具


方法二:

修改服务器,使其兼容老系统的算法

vi /etc/ssh/sshd_config
#加入如下内容  
KexAlgorithms [email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1

#重启ssh
systemctl restart sshd.service


更多技术干货,请持续关注程序员大佬超。
原创不易,转载请注明出处。

你可能感兴趣的:(Linux,linux,运维,服务器)