mac连接linux报错Unable to negotiate with port 22: no matching host key type found. Their offer: ssh-rsa,

mac 使用ssh连接linux服务器报错

Unable to negotiate with 10.254.8.211 port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss

进入.ssh
vim config 文件
内容

Host *
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa

你可能感兴趣的:(linux,ssh,macos)