window环境下git通过ssh clone gitlab服务器的代码报错
Unable to negotiate with 192.168.100.78 port 29418: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
解决办法:
在.ssh同跟文件夹下创建config文件,文件内内容为:
Host *
KexAlgorithms +diffie-hellman-group1-sha1
保存后重新连接-》成功解决。
本文解决了在Windows环境下使用Git通过SSH方式克隆GitLab服务器上的代码时出现的错误:“无法协商192.168.100.78端口29418:未找到匹配的密钥交换方法”。通过配置.ssh目录下的config文件来成功解决了此问题。
1098

被折叠的 条评论
为什么被折叠?



