如何修复 OpenWRT SSH Unable to negotiate with ... no matching host key type found. Their offer: ssh-rsa
问题:
使用现代 Linux 客户端通过 SSH 连接 OpenWRT 设备时,你看到类似以下的错误消息:
ssh_no_matching_host_key.txt
Unable to negotiate with 192.168.1.1 port 22: no matching host key type found. Their offer: ssh-rsa解决方案
你可以通过使用 -oHostKeyAlgorithms=+ssh-rsa 明确告诉 SSH 允许 ssh-rsa,例如:
ssh_allow_ssh_rsa.sh
ssh -oHostKeyAlgorithms=+ssh-rsa root@192.168.1.1使用此命令应该允许你连接到你的 OpenWRT 设备。
Check out similar posts by category:
Networking, OpenWRT
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow