当前位置:   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 fatal: could not read

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中配置了ssh key,但是依然不能clone下代码。(肯定配置的无问题)

解决办法:

1、找到git安装目录(根据自己安装时选项,找到此目录),找到 ssh_config 配置文件

2、以文本形式打开ssh_config此文件,定位到最下面

 3、配置完成后,保存配置文件后再次去clone代码,就没问题了

参考:no matching host key type found. Their offer: ssh-rsa,ssh-dss... - 简书

 

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

闽ICP备14008679号