使用git拉取代码的时候报这种错误
Unable to negotiate with 59.110.70.248 port 22: no matching key exchange method found.
Their offer: diffie-hellman-group-exchange-sha1,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文件
如图:
config里面填写的配置内容是:
Host *
KexAlgorithms +diffie-hellman-group1-sha1
如图,这样就解决了配置的问题
在拉取代码就ok了