美文网首页
Mac系统升级报错:diffie-hellman-group1-

Mac系统升级报错:diffie-hellman-group1-

作者: 代码守望者 | 来源:发表于2017-08-21 10:57 被阅读89次

背景:Mac本很久没有升级了,今天升级之后居然无法使用GIt进行代码管理

git pull 代码报错:

Unable to negotiate with xxx.xxx.xxx.xxx port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1

解决方法:

打开终端
open .ssh

在该目录下新建文件"config" 内容为:

Host xxx.xxx.xxx.xxx
KexAlgorithms +diffie-hellman-group1-sha1

举个栗子:

image.png

OK,git 可以继续使用了。
3Q

相关文章

网友评论

      本文标题:Mac系统升级报错:diffie-hellman-group1-

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