美文网首页
Mac升级Sierra , git无法正常使用diffie-he

Mac升级Sierra , git无法正常使用diffie-he

作者: 老妖沐沐 | 来源:发表于2016-11-24 10:56 被阅读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再试

相关文章

网友评论

      本文标题:Mac升级Sierra , git无法正常使用diffie-he

      本文链接:https://www.haomeiwen.com/subject/ptsbpttx.html