当前位置:   article > 正文

Git:Unable to negotiate with错误_unable to negotiate with 10.158.231.11 port 29418:

unable to negotiate with 10.158.231.11 port 29418: no matching host key type

今天更新了一下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,成功。

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/空白诗007/article/detail/789905
推荐阅读
相关标签
  

闽ICP备14008679号