git拉取代码报错:

Unable to negotiate with 172.18.19.44 port 22: no matching host key type found. Their offer: ssh-rsa
fatal: Could not read from remote repository.Please make sure you have the correct access rights
and the repository exists.

SSH有几种不同类型的密钥:RSA密钥 (ssh-rsa) 可以支持多种签名。签名类型sssh-rsa是指带有SHA-1的RSA,而签名类型rsa-sha2-256是带有SHA-256的RSA,rsa-sha2-512是带有SHA-512的RSA。

上面报错中提示,git服务端中使用的密钥是ssh-rsa类型的,而我本地的ssh(openSSH 9.x)默认不支持这种算法,需要指定下算法

解决方案:

进入~/.ssh目录,打开config文件(没有的话新建一个),添加如下配置:

Host {域名}User gitPubkeyAcceptedAlgorithms +ssh-rsaHostkeyAlgorithms +ssh-rsa

{域名}替换成你自己的git服务器域名

git拉取代码报错:Unable to negotiate with xxx port xxx: no matching host key type found相关推荐

  1. Unable to negotiate with XXXX port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss

    问题描述 代码仓库已经添加了ssh公钥之后,克隆代码到本地时就报了这个问题 执行命令 git clone git@xxxxxxxxxxxxx.git 不能正常clone代码,报错信息如下: Unabl ...

  2. Git提示: Unable to negotiate with xxx.xxx.xxx.xxx port XX: no matching host key type found.

    解决: 前提: 在排除没有配置公钥的情况下. 在Git的安装目录下 Git > etc > ssh 文件夹下找到 ssh_config 文件,在文件末尾添加一下代码 Host *Hostk ...

  3. git拉取代码报错fatal Authentication failed for ‘httpxxxx.git‘‘解决方案

    git拉取代码报错fatal: Authentication failed for 'http:xxxx.git''解决方案 1.需求背景 最近由于自己的主机出问题了,所以换了一台主机,然后在换的主机 ...

  4. Unable to negotiate with xx.xx port xx: no matching host key type found. Their offer: ssh-rsa....

    背景 下载安装了官网最新的Git: 安装没问题,配置了name和email: 同时也配置了ssh秘钥到代码仓库: 使用git bash命令或者从idea中clone代码,报错如下: Unable to ...

  5. 【已解决】Unable to negotiate with 47.98.49.44 port 22: no matching host key type found. Their offer: ssh

    文章目录 问题 解决 问题 运行 git clone git@code.aliyun.com:project-main/project-name.git,报错如下: Cloning into 'pro ...

  6. 【已解决】Unable to negotiate with — port 22: no matching host key type found. Their offer: ssh

    标题 mac系统,想通过ssh连接,但出现以下报错:Unable to negotiate with 10.188.5.86 port 22: no matching host key type fo ...

  7. Unable to negotiate with 192.168.2.53 port 22: no matching host key type found. Their offer: ssh-rsa

    终端远程登录ssh时,提示如下错误: Unable to negotiate with 192.168.2.53 port 22: no matching host key type found. T ...

  8. Unable to negotiate with 123.4.47.238 port 29418: no matching host key type found. Their offer: ssh-

    Unable to negotiate with 123.4.47.238 port 29418: no matching host key type found. Their offer: ssh- ...

  9. 【Git拉取代码报错】Couldn‘t save uncommitted changes.Failed to fetch old content for file in revsion

    问题描述 今日通过IDEA用git拉取代码的时候,GIT报错如下: Couldn't save uncommitted changes Tried to save uncommitted change ...

最新文章

  1. 步态识别 GaitSet
  2. ERROR: cannot launch node of type [pointcloud_to_laserscan/pointcloud_to_laserscan]
  3. Linux基本的操作
  4. 路由器和交换机的区别详解
  5. centos7 python3 sqlserver,centos7中python3环境支持s
  6. 手把手教你进行pip换源,让你的Python库下载嗖嗖的
  7. golang mysql连接池原理_[Go] golang实现mysql连接池
  8. html session登陆验证,原创 实现session登陆时间的验证,验证用户登录页面的一个监听器...
  9. 将文本文件内容存储在DataSet中的方法总结
  10. 模板---函数模板,类模板等
  11. System Toolkit for Mac(系统维护工具)
  12. 面试题_翻转句子中单词的顺序
  13. SpringBoot优缺点总结
  14. 销售管理系统数据库设计说明书
  15. 两个重要极限 常用等价无穷下小 泰勒展开 麦克劳林公式
  16. 【端口被占用】查看占用程序,并结束占用程序、MySQL的Unable to connect to the database问题
  17. CTGU·OJ 快乐
  18. xml和接口简单理解
  19. php adodb smarty,ADODB结合SMARTY使用~超级强
  20. 营销人员是怎么使用MindManager思维导图的?

热门文章

  1. [渝粤教育] 广东-国家-开放大学 21秋期末考试中国法律史10212k1
  2. 论追热点,我不是针对谁,我是说在座的各位......
  3. 计算机题库一级第四,计算机一级题题库,第四章Excel
  4. python k线图和指标_量化交易中,如何使用Python画K线、成交量、买卖点【邢不行】...
  5. StageFright框架(四)Video Buffer傳輸流程
  6. 2021-2022学年广州市西关外国语学校九年级第二学期2月月考英语试题
  7. 关于GOG Galaxy 2.0提示“无法下载所需文件”问题的解决方案:
  8. [Swift]UITextField在左侧添加内边距或图标
  9. TSN (Time-Sensitive Networking)时间敏感网络
  10. 学习笔记,初学者对继承、接口的习题练习: 模拟给所有员工发工资定义员工Employee类,经理Manager类继承Employee类,职员Clerk类继承Employee类。