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
保存后重新连接-》成功解决。