SecureCRT无法连接腾讯云服务器解决办法

SecureCRT 连接腾讯云服务器出现如下问题:Key exchange failed.No compatible key exchange method. The server supports these m

SecureCRT 连接腾讯云服务器出现如下问题:

Key exchange failed.
No compatible key exchange method. The server supports these methods: curve25519-sha256,curve25519-sha256@libssh,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256


Press Ctrl+C to cancel or Enter to reconnect immediately.
Reconnecting in 1 seconds...

原因

高版本的openssh无法对旧版本CRT客户端密钥交换算法支持

解决办法

1. 查看当前是否安装open-ssl
yum list installed | grep openssh-server

如果未安装,则安装即可
yum install openssh-server

2. 修改配置、允许低版本的密钥算法
vim /etc/ssh/sshd_config
3. 修改配置内容
HostKeyAlgorithms=+ssh-rsa,ssh-dss
KexAlgorithms=+diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1

如果有同名配置,需要注释掉

4. 重启sshd
systemctl restart sshd

大功告成

发布者:admin,转转请注明出处:http://www.yc00.com/web/1754578342a5177746.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信