Unable to negotiate with 172 . 22 . 4.19 port 22 : no matching host key type foundir offer : ssh-rsa . ssh-dss
时间: 2023-10-19 07:09:25 浏览: 165
这个错误通常是由于 SSH 客户端和服务器之间的密钥不匹配导致的。可能是因为服务器上的密钥类型不被客户端支持,或者客户端上的密钥类型不被服务器支持。您可以尝试使用以下命令来解决此问题:
ssh -oHostKeyAlgorithms=+ssh-dss user@hostname
这将在 SSH 连接中添加一个选项,以便客户端可以使用 ssh-dss 密钥类型与服务器进行通信。
相关问题
Unable to negotiate with 192.168.6.236 port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss
当你尝试通过SSH(Secure Shell)连接到IP地址为192.168.6.236的服务器时,收到了如下的错误消息:“Unable to negotiate with 192.168.6.236 port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss”。这个错误表明,客户端无法识别服务器提供的公钥类型(rsa和dss),通常是因为两者之间使用的加密算法版本不匹配。
简单解释就是,在客户端和服务器之间的密钥交换过程中,它们试图协商一种共同支持的加密算法来保护数据传输的安全。服务器提供的SSH公钥类型(rsa和dss)与客户端支持的公钥类型不符,导致连接失败。
解决这个问题的方法通常有以下几步:
1. 确保客户端和服务器都支持相同类型的SSH密钥,比如都是RSA。
2. 更新客户端的SSH配置文件(例如在Linux系统下通常是`~/.ssh/config`),添加或更新服务器的主机名和对应的公钥类型。
3. 如果服务器的密钥是新的,请将新密钥添加到客户端的`known_hosts`文件中,允许其信任并忽略证书类型差异。
Unable to negotiate with 172.29.10.147 port 29418: no matching host key type fou nd. Their offer: ssh-rsa,ssh-dss
回答: 出现 "Unable to negotiate with 172.29.10.147 port 29418: no matching host key type found. Their offer: ssh-rsa,ssh-dss"的错误提示是因为ssh客户端不支持ssh-rsa算法。为了解决这个问题,您可以修改本地配置,重新使用ssh-rsa算法。具体的方法可以参考引用中提到的网上的教程。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* *2* *3* [Unable to negotiate with 47.96.92.201 port 29418: no matching host key type found. git问题解决](https://blog.csdn.net/qq_45530512/article/details/127051071)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文
相关推荐















