解决ssh链接报错问题

在使用ssh连接时出现报错,如下

┌──(kali㉿kali)-[~]
└─$ ssh user@10.10.171.15                             
Unable to negotiate with 10.10.171.15 port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss

意思就是找不到匹配的主机密钥类型,需要手动进行指定,使用-oHostKeyAlgorithms参数执行密钥即可,如下

ssh user@10.10.171.15 -oHostKeyAlgorithms=+ssh-rsa


连接成功

posted @ 2024-03-02 20:16  Junglezt  阅读(188)  评论(0编辑  收藏  举报