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:

  1. sudo vim /etc/ssh/ssh_config

  2. 添加如下到文件底部
    Host *
    KexAlgorithms +diffie-hellman-group1-sha1

  3. 重启command再试

上一篇 下一篇

猜你喜欢

热点阅读