当前位置:   article > 正文

git clone 代码后报错 no matching host key type found. Their offer: ssh-rsa,ssh-dss

no matching host key type found. their offer: ssh-rsa,ssh-dss fatal: could n

git clone 代码后报错 :ssh-rsa,ssh-dss

$ git clone xxx.git Cloning into 'xxx'...
Unable to negotiate with 路径 port 端口号: 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.

找到git的安装路径,etc/ssh/ssh_config,右键通过记事本打开

 

在最下面加这三行

Host  路径
        HostkeyAlgorithms +ssh-rsa
        PubkeyAcceptedAlgorithms +ssh-rsa

或者

Host *.路径
        HostkeyAlgorithms +ssh-rsa
        PubkeyAcceptedAlgorithms +ssh-rsa

保存到桌面.txt,然后再去掉后缀,拖到ssh里面替换掉ssh_config就可以了

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号