搭建环境【3】SecureCRT_CN连接ubuntu 主机遇到的问题

问题 1:

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,sntrup761x25519-sha512@openssh.com,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256

No compatible hostkey. The server supports these methods: rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519

解答:

vi /etc/ssh/sshd_config

#add the following text

KexAlgorithmscurve25519-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

#restart ssh

systemctl restart sshd.service

问题 2:

Key exchange failed. No compatible hostkey. The server supports these methods: rsa-sha2-512,rsa-sha2

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-3JuhnzFZ-1686994586947)(file:///C:\Users\ADMINI~1\AppData\Local\Temp\ksohtml320\wps1.jpg)]-transform:no9�sF�d

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-kkRcfVlt-1686994586948)(file:///C:\Users\ADMINI~1\AppData\Local\Temp\ksohtml320\wps2.jpg)]-transform:no9�sF�d

解决方法:

https://blog.csdn.net/weixin_42804852/article/details/123677678

https://programmerah.com/solved-securecrt-error-key-exchange-failed-no-compatible-key-exchange-method-51086/

https://www.cnblogs.com/shenjianyu/p/6407042.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值