更新macOS Sierra ,发现git操作报错:
git pull origin release-1.7.24
Unable to negotiate with 192.168.1.10 XXXX: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
fatal: Could not read from remote repository.
解决:添加~/.ssh/config,加入
Host *
KexAlgorithms +diffie-hellman-group1-sha1
参考:http://blog.youkuaiyun.com/junheart/article/details/51324848