Git 常见问题: unable to negotiate with *.*.*.*: no matching key exchange methodfound...

简介:

在Windows上更新了git 版本后,clone/pull时出现错误,

unable to negotiate with *.*.*.*: no matching key exchange methodfound. Their offer: diffie-hellman-group1-sha1

解决方法:在执行git pull/clone之前,输入:

export GIT_SSH_COMMAND='ssh -o KexAlgorithms=+diffie-hellman-group1-sha1'  

这种方法每次打开git窗口,都要重新输入一次。

以在C:\Users\Spring\.ssh的config文件下,添加内容如下,[本人测试有作用]

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


本文转自Work Hard Work Smart博客园博客,原文链接:http://www.cnblogs.com/linlf03/p/5806896.html,如需转载请自行联系原作者

目录
相关文章
|
IDE Shell 网络安全
Visual Studio 2022 git error Unable to negotiate with xx.xxx.xxxx port 22: no matching host key type found. Their offer: ssh-rsa
Visual Studio 2022 git error Unable to negotiate with xx.xxx.xxxx port 22: no matching host key type found. Their offer: ssh-rsa
283 0
Visual Studio 2022 git error Unable to negotiate with xx.xxx.xxxx port 22: no matching host key type found. Their offer: ssh-rsa
|
开发工具 git 持续交付
但凡用Git,一定碰到过这些问题!
Git 是目前最流行的版本控制系统,在它的基础之上, GitHub 和 GitLab 成为当前最流行的代码托管平台,它们均提供的代码评审、项目管理、持续集成等功能,越来越多的互联网企业都迁移到 Git。
3760 0
|
网络安全 开发工具 git
git 常用使用及问题记录
1、打开bash,进入工程根目录(引用whaon的话:是和.classpath和.project同级的目录)。PS:我的系统是win7,在bash切换到E的命令是 cd /e; 2、运行 git init 初始化代码仓库(repository) 3、运行git add .
943 0
|
开发工具 git 网络安全
git 常见问题
RPC failed; error: RPC failed; curl 56 SSL read: error:00000000:lib(0):func(0):reason(0), er rno 10054 解决: 应该是pull 内容更新太多,需要设置postBuffer更大些,具体看上面的链接 git config --global http.
1334 0
|
开发工具 git
使用git遇到的问题汇总
1、git中remotes/origin/HEAD指向的分支丢失 用git命令查看分支时,会提示一个错误信息: $ git branch -av ...... ...... error: some refs could not be read 查看几个分支都正在使用,用branch -a查看到remotes/origin/HEAD指向了一个不存在的分支: $
2220 0
|
网络安全 开发工具 Android开发
git学习------>"Agent admitted failure to sign using the key." 问题解决方法
今天用git clone 命令clone服务器上的代码时候报了如下的错误: ouyangpeng@oyp-ubuntu:~/Android/git_canplay_code$ git clone gitcply:canplay/vendor/mstar/Canplay/apps/Video Cloning into 'Video'.
1110 0
|
4天前
|
缓存 数据可视化 网络安全
Git命令大全
Git命令大全
36 1
|
8天前
|
开发工具 git
Git教程:深入了解删除分支的命令
【4月更文挑战第3天】
34 0
Git教程:深入了解删除分支的命令
|
26天前
|
存储 Shell Linux
【Shell 命令集合 文件管理】Linux git命令使用教程
【Shell 命令集合 文件管理】Linux git命令使用教程
31 0