Mac升级Sierra , git无法正常使用diffie-hellman-group1-sha1

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再试

你可能感兴趣的:(Mac升级Sierra , git无法正常使用diffie-hellman-group1-sha1)