您好,欢迎来到二三四教育网。
搜索
您的当前位置:首页Mac系统升级报错:diffie-hellman-group1-

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

来源:二三四教育网

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

Copyright © 2019- how234.cn 版权所有 赣ICP备2023008801号-2

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务