【无标题】

GIT clone异常Unable to negotiate with

问题现象

Unable to negotiate with 17.0.01 port 29418: no matching key exchange method

found. Their offer: diffie-hellman-group14-sha1,diffie-hellman-group1-sha1

fatal: Could not read from remote repository.

修复问题

在ssh目录创建config文件

vi ~/.ssh/config

文件中添加

Host *

KexAlgorithms +diffie-hellman-group1-sha1

HostkeyAlgorithms +ssh-dss,ssh-rsa

PubkeyAcceptedKeyTypes +ssh-dss,ssh-rsa

相关推荐
kuroomi12 小时前
Git入门
git·kubernetes
daliucheng12 小时前
lazygit 上手:日常 git 操作一篇讲完
git
codigger14 小时前
大厂git提交规范
git·程序员
挖掘狂人14 小时前
六条分支,一条主干:我的 Git 分支管理心得
git·后端·程序员
Brookty15 小时前
Git与GitHub系统学习|本地Git工作模型:终端与进程、CWD、HEAD/Index/工作树及Git对象
git·github
2301_767113981 天前
点过“不再询问”就要检查:Claude Code权限文件也可能存着密钥
git·信息安全·claude code
江屿风2 天前
【Git-组件】【Git入门:从文档灾难到版本掌控】流食般投喂
运维·笔记·git·组件·版本控制
程序员沉梦听雨2 天前
【Git】fork工作流与上游同步
git
高调的涵涵5 天前
删了1.2GB,.git仍是1.2GB
git
程序员沉梦听雨5 天前
【Git】git-submodule子模块管理
git