Ssh无法连接服务器no matching host key type found

来自linux中国网wiki
跳到导航 跳到搜索

openbsd7

Unable to negotiate with vmip port 2222: no matching host key type found. Their offer: ssh-rsa

在openbsd login jump 的提示 可见  他只提供ssh-rsa 

参考open-ssh的官方文档原因是新版本的SSH禁用了ssh-rsa公钥算法,DSA算法太脆弱不推荐使用。如果要重新激活,可以在命令行参数中指明:

ssh -oHostKeyAlgorithms=+ssh-rsa  -i .ssh/id_rsa evan@ip -p36


ssh无法访问服务器报“ssh-dss”认证错误

http://www.openssh.com/legacy.html

https://unix.stackexchange.com/questions/402746/ssh-unable-to-negotiate-no-matching-key-exchange-method-found