赞
踩
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了。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。