当前位置: 首页 > news >正文

【git clone error:no matching key exchange method found】

拉起项目代码报错

git clone ssh://uidxxx@gerrit-xxxxxxxx
Cloning into ‘xxxxx’…
Unable to negotiate with xxx.xx.xxx.ip port xxxxx: no matching key exchange method found. Their offer: diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
fatal: Could not read from remote repository.
//无法读取远程仓库
未找到匹配的密钥交换方法,不同的密码交换方法
diffie-hellman-group14-sha1,diffie-hellman-group1-sha1

解决方法

git config配置文件中添加以下内容
 uidxxx-MINGW64 vim ~/.ssh/config ```vim
Host *
PubkeyAcceptedKeyTypes +ssh-rsa
HostkeyAlgorithms ssh-dss,ssh-rsa
KexAlgorithms +diffie-hellman-group1-sha
uidxxx-MINGW64 ~/.ssh
$ ls -l
total 10
-rw-r--r-- 1 uidxxx 1049089  117 Aug 15 17:00 config
-rw-r--r-- 1 uidxxx 1049089 2602 Aug 15 16:44 id_rsa
-rw-r--r-- 1 uidxxx 1049089  572 Aug 15 16:44 id_rsa.pub
-rw-r--r-- 1 uidxxx 1049089 1007 Aug 15 21:18 known_hostsuidxxx-MINGW64 ~/.ssh
$ cat config
Host *
PubkeyAcceptedKeyTypes +ssh-rsa
HostkeyAlgorithms ssh-dss,ssh-rsa
KexAlgorithms +diffie-hellman-group1-sha1uidxxx-MINGW64 ~/.ssh

git又能愉快的玩耍了
git niubi

http://www.lryc.cn/news/126616.html

相关文章:

  • 谈谈网络协议的定义、组成和重要性
  • ssh免密登陆报错ERROR: @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
  • 【kubernetes】Pod控制器
  • aspose.ocr 的图片识别
  • 安卓纯代码布局开发游戏二:Android Studio开发环境搭建
  • HuggingFace开源的自然语言处理AI工具平台
  • ant-design-vue在ios使用AUpload组件唤起了相机,HTML的 `capture` 属性
  • 力扣75——图深度优先搜索
  • 小程序前台Boot后台校园卡资金管理系统java web学校进销存食堂挂失jsp源代码
  • 数学建模-多元线性回归笔记
  • 云安全攻防(十二)之 手动搭建 K8S 环境搭建
  • Python学习笔记_基础篇(八)_正则表达式
  • 【洛谷 P5736】【深基7.例2】质数筛 题解(判断质数)
  • C语言好题解析(一)
  • uniapp微信小程序区分正式版,开发版,体验版
  • 更多openEuler镜像加入AWS Marketplace!
  • 【BASH】回顾与知识点梳理(二十四)
  • CSRF
  • pyscenic分析:视频教程
  • 可视化绘图技巧100篇进阶篇(九)-三维百分比堆积条形图(3D Stacked Percentage Bar Chart)
  • js实现将文本转PDF格式并下载到本地
  • Servlet+JDBC实战开发书店项目讲解第四篇:登录实现
  • HarmonyOS NEXT新能力,一站式高效开发HarmonyOS应用
  • 【Java从0到1学习】09 正则表达式
  • log4j:WARN No appenders could be found for logger问题
  • 【Java】批量生成条形码-itextpdf
  • SpringBoot登录、退出、获取用户信息的session处理
  • 【软件测试】随笔系统测试报告
  • vue中使用html2canvas+jsPDF实现pdf的导出
  • Linux学习之firewallD