admin管理员组文章数量:1130349
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
大功告成
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
大功告成
版权声明:本文标题:SecureCRT无法连接腾讯云服务器解决办法 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/jiaocheng/1754578343a2703817.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论