git报错:no matching key exchange method found.

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

你可能感兴趣的:(git)