git环境搭建异常问题记录
1、问题一:Unable to negotiate with 10.160.22.5 port 29418: no matching host key type found. Their offer: ssh-rsa。2、问题二:ssh: Could not resolve hostname gerrit.cmss.com: Name or service not known。
·
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中
更多推荐
已为社区贡献1条内容
所有评论(0)