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

背景: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

举个栗子:

Mac系统升级报错:diffie-hellman-group1-sha1_第1张图片
image.png

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

你可能感兴趣的:(Mac系统升级报错:diffie-hellman-group1-sha1)