赞
踩
git配置完后显示无法下载代码
- Unable to negotiate with 192.168.2.151: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
- fatal: Could not read from remote repository.
解决办法
1.在host下加入 KexAlgorithms=+diffie-hellman-group1-sha1
2.还有一个办法
在用户目录下的.ssh
文件夹新建一个config
文件
输入
- Host *
- KexAlgorithms +diffie-hellman-group1-sha1
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。