shenyg 发表于 2017-7-2 09:28:21

Git 常见问题: unable to negotiate with *.*.*.*: no matching key exchange methodfound

  在Windows上更新了git 版本后,clone/pull时出现错误,
  unable to negotiate with *.*.*.*: no matching key exchange methodfound. Their offer: diffie-hellman-group1-sha1
  解决方法:在执行git pull/clone之前,输入:
  export GIT_SSH_COMMAND='ssh -o KexAlgorithms=+diffie-hellman-group1-sha1'
  这种方法每次打开git窗口,都要重新输入一次。
  可以在C:\Users\Spring\.ssh的config文件下,添加内容如下,[本人测试有作用]
  Host *.*.*.*
KexAlgorithms +diffie-hellman-group1-sha1



  参考:Git使用常见问题解决方法汇总
页: [1]
查看完整版本: Git 常见问题: unable to negotiate with *.*.*.*: no matching key exchange methodfound