在使用ssh
连接时出现报错,如下
┌──(kali㉿kali)-[~]
└─$ ssh [email protected]
Unable to negotiate with 10.10.171.15 port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss
意思就是找不到匹配的主机密钥类型,需要手动进行指定,使用-oHostKeyAlgorithms
参数执行密钥即可,如下
ssh [email protected] -oHostKeyAlgorithms=+ssh-rsa
连接成功