SecureCRT:无法链接Linux服务器

一、问题:

使用SecureCRT链接Linux服务器报错:

Key exchange failed.

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


二、解决办法:

1、需要修改两个地方:
(1)vim /etc/ssh/ssh_config

将下面两行注释去掉

(2)vim /etc/ssh/sshd_config

找到:PasswordAuthentication,设置成yes

PasswordAuthentication yes

最后一行增加:

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

2、重启sshd服务

(1)查看 sshd 服务是否启动:systemctl status sshd.service

(2)启动sshd服务:systemctl start sshd.service

(3)重启sshd服务:service sshd restart(或者 systemctl restart sshd.service )


三、SecureCRT Linux风格配置

1、Options->Session:

Terminal->Emulation: Terminal: Linux

Terminal->Appearance:Fonts->Character encoding: UTF-8

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容