SecureCRT连接Ubuntu20报错:Key exchange failed

问题:

安装的Ubuntu20,SSH服务已安装,使用putty可以正常ssh远程登录进去,使用SecureCRT远程登录会报错如下:

Key exchange failed. No compatible key exchange method. The server supports these methods: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256

原因:暂时未知,待查!!!

解决:

在/etc/ssh/sshd_config文件中添加一下内容:

KexAlgorithms curve25519-sha256@libssh.org,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服务

SecureCRT连接Ubuntu20报错:Key exchange failed
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
Scroll to top
0
Would love your thoughts, please comment.x
()
x