Git clone失败的解决方法
来源:互联网 发布:国家打击网络暴恐信息 编辑:程序博客网 时间:2024/05/22 09:39
问题描述
新配置的Git Bash客户端去克隆服务器的工程时出现如下错误:
Unable to negotiate with xxx port xxx:no matching key exchange method found.Their offer: diffie-hellman-group1-sha1
fatal:Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
错误截图如下:
解决方法
找到安装的Git客户端ssh的配置文件,我安装的是“Git Bash 2.10.2”版本,安装之后配置文件在“D:\Program Files\Git\etc\ssh”目录下的“ssh_config”文件里面,用记事本或者UE工具打开该文件,在里面添加如下内容:
Host 192.168.8.163KexAlgorithms +diffie-hellman-group1-sha1
注意:192.168.8.163 是服务器的地址,要根据你自己服务器的地址进行修改,上面地址是我这边服务器的地址,别直接复制上。
按照上述方式修改完之后保存修改,然后重新打开Git Bash,就可以克隆代码了。操作截图如下:
这样,问题就可以成功解决了。
0 0
- Git clone失败的解决方法
- git clone Google的代码失败的解决方法
- git clone git://eagain.net/gitosis.git 失败解决方法
- git clone git://eagain.net/gitosis.git 失败解决方法
- 嵌入式 git-clone-git://eagain.net/gitosis.git 失败解决方法
- 解决git clone失败的问题
- git clone失败的一种解决办法
- git clone下载速度很慢的解决方法
- Git Review提交代码失败的解决方法
- Git Review提交代码失败的解决方法
- Git Review提交代码失败的解决方法
- git pull 更新失败的解决方法
- 第一次使用git提交失败的解决方法
- git pull 更新失败的解决方法
- centos下git clone失败处理方法
- DevStack安装问题,git clone noVNC.git失败
- git下push失败解决方法
- git下push失败解决方法
- hashmap,concurrenthashmap底层实现和区别
- 送给IT前线码农的话 - 大牛们的总结的经典语录
- Android EventBus实战 没听过你就out了
- CSS 不为人知的 Selectors Level 4 中新定义的选择器
- C语言提高班学习笔记 lesson2 结构体
- Git clone失败的解决方法
- 【转】前端面试题目和答案收集
- Java SE基础
- django url套路
- 除法和乘法的移位处理
- HTTP 消息结构
- uml——活动图和状态图
- 操作元素的CSS样式、正则表达式、心得
- JSP JavaBeans