解决 Unable to negotiate with 192.21.5.163 port 98563: no matching host key type found. Their offer: s

Windows系统配置git SSH协议,配置公钥啥的前置任务都完成了,克隆代码,遇到这么一个问题:

Unable to negotiate with 192.21.5.163 port 98563: no matching host key type found. Their offer: ssh-rsa
fatal: Could not read from remote repository.

 记录下解决方案:

在用户目录下 .ssh文件夹下面创建一个config文件,没有后缀,拷贝以下内容到这个文件,保存退出:

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

然后再次克隆就OK了。

猜你喜欢

转载自blog.csdn.net/msn465780/article/details/128709734
今日推荐