赞
踩
今天更新了一下Git版本,发现推送代码的时候提示
Unable to negotiate with xx.xx.xx.xx port 29418: no matching host key type found. Their offer: ssh-rsa,ssh-dss
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
查了一下资料,解决办法记录一下:
解决方案:
1.打开('C:\Users\你当前的账户名')
2.在这个文件夹中看是否有一个.ssh文件夹
3.打开文件夹,找到config文件,如果没有的话,就新建一个,没有后缀;
4.文件内容写入:
Host *
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa
5.保存文件,Git重新push,成功。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。