1、问题一:Unable to negotiate with 10.160.22.5 port 29418: no matching host key type found. Their offer: ssh-rsa

Unable to negotiate with 10.160.22.5 port 29418: no matching host key type found. Their offer: ssh-rsa

解决方法:

cd ~/.ssh

vim config

在其中添加:

Host *
PubkeyAcceptedKeyTypes +ssh-rsa
HostKeyAlgorithms +ssh-rsa

如果有遇到提示:Are you sure you want to continue connecting (yes/no/[fingerprint])? 
输入 yes,回车即可。

2、问题二:ssh: Could not resolve hostname gerrit.cmss.com: Name or service not known

ssh: Could not resolve hostname gerrit.cmss.com: Name or service not known

解决方法:

ping gerrit.cmss.com得到ip

将ip地址加入/etc/hosts中

Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐