no matching host key type found. Their offer: ssh-rsa 问题解决
最近升级了Mac OS Ventura 13.0.1后发现ssh指定密钥登录服务器失败。
no matching host key type found. Their offer: ssh-rsa
进入当前用户的.ssh目录发现比之前系统多了一个config文件
查看sshd版本,发现升级了,需要指定算法参数
解决办法:
方法1. ssh
命令指定算法,每次指定比较麻烦
ssh -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa user@host -p 2222
方法2. 修改ssh配置文件 ~/.ssh/config, 增加配置项,一劳永逸
HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa
上面配置默认对所有连接的服务器生效,也可以通过制定服务器使部分服务器生效
Host 172.16.x.x
HostName k8s-node001
User root
Port 22
HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa
为什么会有这个错误
Future deprecation notice It is now possible[1] to perform chosen-prefix attacks against the SHA-1 algorithm for less than USD$50K.
In the SSH protocol, the “ssh-rsa” signature scheme uses the SHA-1 hash algorithm in conjunction with the RSA public key algorithm. OpenSSH will disable this signature scheme by default in the near future.
Note that the deactivation of “ssh-rsa” signatures does not necessarily require cessation of use for RSA keys. In the SSH protocol, keys may be capable of signing using multiple algorithms. In particular, “ssh-rsa” keys are capable of signing using “rsa-sha2-256” (RSA/SHA256), “rsa-sha2-512” (RSA/SHA512) and “ssh-rsa” (RSA/SHA1). Only the last of these is being turned off by default.
也就是说 >=8.8p1 版的 openssh 的 ssh 客户端默认禁用了
ssh-rsa
算法, 但是服务器端未升级只支持ssh-rsa
, 当你不能自己升级远程服务器的 openssh 版本或修改配置让它使用更安全的算法时, 在本地 ssh 针对这些旧的ssh server重新启用ssh-rsa
也是一种权宜之法.
no matching host key type found. Their offer: ssh-rsa 问题解决相关推荐
- 【已解决】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 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 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 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 ...
- 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 XXXX port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss
问题描述 代码仓库已经添加了ssh公钥之后,克隆代码到本地时就报了这个问题 执行命令 git clone git@xxxxxxxxxxxxx.git 不能正常clone代码,报错信息如下: Unabl ...
- macOS Ventura no matching host key type found. Their offer: ssh-rsa
macOS Ventura 正式退出后,我勇敢的吃了螃蟹. 在提交代码的时候遇见了no matching host key type found. Their offer: ssh-rsa 的错误, ...
- scp或者ssh报错“no matching host key type found. Their offer: ssh-rsa,ssh-dss“
scp或者ssh报错"no matching host key type found. Their offer: ssh-rsa,ssh-dss" 原因:OpenSSH 7.0以后 ...
- win git 报错 no matching host key type found. Their offer: ssh-rsa
问题描述 zeqiwk@ZEQIWK-PC MINGW64 ~/Desktop $ ssh -T -p 10022 gogs@git.e-nci.com Unable to negotiate wit ...
最新文章
- 2022-2028年中国光刻机行业深度调研及投资前景预测报告
- php qq对话,用php聊QQ
- shell 动态进程守护
- vim、gvim在windows下中文乱码的终极解决方案
- vim中自动添加文件的作者、时间信息、版本等
- 显卡风扇不转电脑黑屏_笔记本电脑开不了机是什么原因及常见解决办法
- 【博客项目】—用户删除功能(十二)
- 我有一张1996年版一元钱,值多少钱?
- Linux nor flash分区,Linux驱动开发笔记:NOR FLASH编写实例
- Linux 命令(76)—— kill 命令
- 如何从我的虚拟环境中更新pip本身?
- PEST分析顺丰服务需求_这个工作值不值得去做?4种分析模型及3种曲线让你学会观察行业...
- 使用JavaScript实现纯前端读取excel文件并与后台进行交互
- 加密算法Bcrypt
- 工作窃取算法 work-stealing
- 02-07GRE真题及答案解析整理
- 一款安全好用的SSH客户端工具
- 浅谈TCP协议的端口(port)
- UWP开发:获取用户当前所在的网络环境(WiFi、移动网络、LAN…)
- iOS图案解锁(九宫格)