报错信息
- 环境 window10 + GIT
- 用Git远程拉去项目
- 报错信息:Unable to negotiate with xx.xx.xx.xx port 22: no matching key exchange method found.Their offer:diffie-hellman-group1-sha1
解决办法
在生成公钥的~/.ssh文件夹下,新建一个config文件(config文件没有后缀),文件中添加如下内容:
Host *
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa
然后保存即可。
注意:xx.xx.xx.xx为服务器ip;+前面有一个空格!
网友评论