git报错:no matching key exchange method found. Their offer: diffie-hellman-group1-sha1

须要在用户目录下的 .ssh文件夹下新建一个 config 文件,增加:

Host * KexAlgorithms +diffie-hellman-group1-sha1

原文:http://www.mamicode.com/info-detail-2358181.html