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代码,报错信息如下:
Unable to negotiate with xxxxxxx 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.
如图所示:
解决方案:
首先是找到git安装目录(根据自己安装时选项,找到这个目录)
然后进入 etc目录,找到ssh目录
再进入ssh目录,找到 ssh_config 配置文件
打开ssh_config此文件,滑动到最下面,新增自己git主机地址(这里我直接默认*)
直接复制下面这一段到文件中最底部位置即可
Host *
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa
配置完成后,保存配置文件后再次去clone代码
终于可以克隆下来了。。。
Unable to negotiate with XXXX port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss相关推荐
- unable to negotiate with xxxxx port xxx: no matching host key type found. Their offer: ssh-rsa
unable to negotiate with xxxxx port xxx: no matching host key type found. Their offer: ssh-rsa windo ...
- 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 ...
- 【已解决】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 ...
- 【已解决】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 ...
- git拉取代码报错:Unable to negotiate with xxx port xxx: no matching host key type found
git拉取代码报错: Unable to negotiate with 172.18.19.44 port 22: no matching host key type found. Their off ...
- 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 ...
- 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- ...
- Unable to negotiate with xxxxport 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss
操作环境:Kali Linux 终端远程登录ssh时,提示如下错误: Unable to negotiate with 192.168.1.152 port 22: nomatching host h ...
- Unable to negotiate with 120.26.106.212 port 22: no matching host key type f
原因是Terminal找不到支持的密钥交换方法,因为新版Openssh中认为SHA1这种hash散列算法过于薄弱,已经不再支持,所以我们需要手动去允许对于SHA1的支持 . 解决办法: 在生成公钥的~ ...
最新文章
- SAP IDoc Post不成功,报错 - A company code cannot be determined for LI 0000100061 –
- javascript的ES6学习总结(第三部分)
- 文巾解题 397. 整数替换
- mysql创建非聚集索引_一文看懂聚集索引和非聚集索引的区别
- request对象与response对象
- 有这16个特征,说明你已达到很高的境界了
- 微服务治理实践:如何对单点异常进行自动摘除
- java 结构体数组初始化_C数组结构体联合体快速初始化
- 智慧停车场管理系统、停车位、停车费、停车场系统、寻车、抬杆、入位车、出位车、车流量统计、停车、收费、缴费、预警管理、业务统计、报警统计、运维管理、报警系统、异常页面、数据配置、智慧停车原型、停车场
- 20180929 北京大学 人工智能实践:Tensorflow笔记04
- CentOS7上使用bind9搭建DNS主从服务器
- gnuTLS 提供的 DTLS-API
- matlab Tricks(二十七)—— 可变输入参数输出参数的适配
- ZJNU 2314-Sleepy Cow Herding
- 一句平静而感人的英文电影对白
- linux 系统 Shell语言 基础
- 关于HOOK,如何通过钩子截获指定窗口的所有消息
- Android学习1——开发环境搭建、Android Studio安装
- Bayes分析中的无信息先验
- 12. 自制操作系统: risc-v ACLINT
热门文章
- 公共计算机课的价值取向是什么意思,提问:1、新课改与新课程标准的价值取向是什么?...
- CSS的两种盒子模型
- 请介绍一下三地菩萨,再说一说,要证悟什么才能称之为三地菩萨.谢谢.
- 图论-单源最短路径算法(拓扑,Dijkstra,Floyd,SPFA)
- C++中经典的垃圾回收算法
- LiteOS 软件定时器
- 【教3妹学算法-每日3题(3)】 和至少为 K 的最短子数组
- BZOJ2121: 字符串游戏
- Python - Requests库下载图片
- 牛客网 Wannafly挑战赛20 A-染色