Mac升级Sierra , git无法正常使用diffie-he
2016-11-24 本文已影响140人
老妖沐沐
Unable to negotiate with xxxxxx port 29418~~: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
fatal: Could not read from remote repository.
fix:
-
sudo vim /etc/ssh/ssh_config
-
添加如下到文件底部
Host *
KexAlgorithms +diffie-hellman-group1-sha1 -
重启command再试