更新macOS Sierra后,解决:no matching key exchange method found. Their offer: diffie-hellman-group1-sha1

更新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.csdn.net/junheart/article/details/51324848

你可能感兴趣的:(iOS的常见问题,masOS,Sierra,git)