“Ssh无法连接服务器no matching host key type found”的版本间的差异

来自linux中国网wiki
跳到导航 跳到搜索
(创建页面,内容为“=openbsd7= <pre> Unable to negotiate with vmip port 2222: no matching host key type found. Their offer: ssh-rsa 在openbsd login jump 的提示 可见 他只提供…”)
 
 
第13行: 第13行:
  
 
[https://www.cnblogs.com/hyang0/p/ssh_dss_legacy.html  ssh无法访问服务器报“ssh-dss”认证错误 ]
 
[https://www.cnblogs.com/hyang0/p/ssh_dss_legacy.html  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
 +
 +
 +
[[category:devops]] [[category:shell]]

2021年12月5日 (日) 12:40的最新版本

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