当前位置:   article > 正文

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

windows下使用git bash拉代码报错如下:

  1. Unable to negotiate with 192.168.1.18 port 29418: no matching host key type found. Their offer: ssh-rsa,ssh-dss 
  2. fatal: Could not read from remote repository.
  3. Please make sure you have the correct access rights
  4. and the repository exists.

解决方法:
在用户目录下的 .ssh文件夹下新建一个 config 文件,添加:

  1. Host *
  2. HostkeyAlgorithms +ssh-rsa
  3. PubkeyAcceptedKeyTypes +ssh-rsa

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

闽ICP备14008679号