17
2022
11
15:03:19

Secure CRT 连接ubuntu显示密钥交换失败



推荐点击下面图片,通过本站淘宝优惠价购买:

image.png

问题:

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,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256

环境:

Ubuntu 20.04.1   群晖nas 7.1  Secure CRT 7.0

网上看了很多解决方法:

试过不行的方法有:

  • 方法一

  • 添加密钥交换方式,把没勾选的全部勾选(无果)

  • 方法二

  • 找到/etc/ssh/ssh_config

如上图文本去掉注释,即删除前面的#,并复制到/etc/ssh/sshd_config中(此方法无果)

  • 放弃的时候又看到有新的方法,修改/etc/ssh/sshd_config,添加以下文本 (群晖要用telnet登录后,用sudo vi /etc/ssh/sshd_config 修改,然后 sudo systemctl restart sshd,就可以了

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

如下图:

现在可以用了

方法三,用最新版的SCRT,支持加密方式,也可以。

【参考文章】:使用SecureCRT连接Ubuntu20.04报错:Key exchange failed. No compatible key exchange method./www.tomato.cm/179.html


本文链接:https://hqyman.cn/post/3010.html 非本站原创文章欢迎转载,原创文章需保留本站地址!

分享到:





休息一下,本站随机推荐观看栏目:


« 上一篇 下一篇 »

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

您的IP地址是: