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 host key type found. Their offer:ssh-dss
由提示得知,ssh不能远程登录的原因为:没有找到相关的主机密钥类型。
1、确实是主机密钥类型不符合
2、不存在相关主机密钥类型
生成ssh_key
1
ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_keyssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
重启ssh之后远程,问题依然存在
确认密钥已存在…
网络搜索中…
指定主机key算法(最后解决方案):
1、命令中加参数
1
ssh -o HostKeyAlgorithms=+ssh-dss user@host
方法一:执行 ssh 指令时增加参数
ssh -oHostKeyAlgorithms=+ssh-dss user@legacyhost
user@legacyhost 替换成自己的服务器登录名及登录地址
2、在~/.ssh目录下添加config
1
vi config
在config中写入以下code:
1
2
Host *
HostKeyAlgorithms +ssh-dss
3、重启ssh
1
service ssh restart
Login success !!!
Unable to negotiate with xxxxport 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss相关推荐
- 【已解决】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 XXX port : no matching host key type found. Their offer: ssh-rsa
一.场景 克隆代码库发生报错 二.具体报错信息 Unable to negotiate with XXX port : no matching host key type found. Their o ...
- 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 ...
- 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 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 ...
- ssh no matching host key type found. Their offer: ssh-rsa
前两天升级macOS 13 Ventura后链接公司堡垒机出现一下问题 ➜ ~ ssh -p 222 ****@**** Unable to negotiate with *** port 222: ...
- 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 ...
- SSH登录时“no matching host key type found. Their offer: ssh-rsa,ssh-dss“的错误解决方法
问题描述 在利用SSH登录某目标时,出现下述报错: ssh loneferret@192.168.140.146 Unable to negotiate with 192.168.140.146 po ...
- Git error: Unable to negotiate with X.X.X.X : no matching host key type found . their offer: ssh-dss
2019独角兽企业重金招聘Python工程师标准>>> I am trying to create a git repository on my web host and clone ...
最新文章
- SQL Server之其他函数——空值处理
- 关于hive中.conf配置文档中sink为avro的端口问题
- [SPOJ375]QTREE - Query on a tree【树链剖分】
- 【算法与数据结构】最大子序列和问题
- 基于Java语言构建区块链(六)—— 交易(Merkle Tree)
- 北京内推 | 华为CloudAI机器视觉产品部招聘计算机视觉见习研究员
- win8.1远程连接Redis数据库
- c语言无法打开源文件xx.h,VS2015 + Qt5.9.2开发中无法打开源文件“ui_*.h” 和 error MSB6006: “cmd.exe”已退出,代码为 3之解决办法。...
- 编译apache过程中出现如下错误及解决办法
- Helios Service Release 2安装SVN
- 如何在程序中画出实际大小为7CM半径的圆
- Java如何比较两个数组是否相等
- Hi,我们的代码重构了
- 活动目录概念和灾难恢复
- html鼠标爱心特效代码,鼠标点击爱心特效代码分享
- 使用微信公众号openid获取用户信息判断是否关注公众号
- vs2008 在 win7 64位安装问题 office 2003 office 2007兼容问题
- [A002]微擎新版本今日头条小程序
- 20145212 罗天晨 MSF基础应用
- 智慧交通大数据可视化,让城市运营车辆可视、可监、可控
热门文章
- 以下不是python内置数据类型的是_以下不是python内置数据类型的是
- Sers微服务快速入门-02.快速接入
- 两个整数相乘的java实现
- 毕业论文的结语都是重复的内容如何降重?
- 为什么在拍摄VR全景时要用鱼眼镜头
- 竞争性排斥原理(高斯假说)
- 005 [Error] expected declaration or statement at end of input
- 正则校验-禁止输入特殊字符和空格
- 福州大学计算机系男女比,全国高校男女比例排行榜(完整版)
- 珠服务器维修,梦幻西游:最奇葩的服务器,避水珠比定魂珠贵10倍还供不应求...