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

来自linux中国网wiki
Evan讨论 | 贡献2021年12月5日 (日) 12:39的版本 (创建页面,内容为“=openbsd7= <pre> Unable to negotiate with vmip port 2222: no matching host key type found. Their offer: ssh-rsa 在openbsd login jump 的提示 可见 他只提供…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳到导航 跳到搜索

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”认证错误