当前位置:网站首页>Unable to negotiate with port 51732: no matching host key type found. Their offer:
Unable to negotiate with port 51732: no matching host key type found. Their offer:
2022-07-23 05:41:00 【青春不流名】
场景描述:在docker容器中执行ssh连接虚拟机的脚本任务,docker容器报错
出现下面的错误信息。
错误信息是使用命令journalctl -xe来查看的。
Jan 07 09:28:02 k8s-master01 sshd[49202]: Unable to negotiate with 10.10.10.88 port 43112: no matching host key type found. Their offer: [email protected] [preauth]
Jan 07 09:28:02 k8s-master01 sshd[49203]: Unable to negotiate with 10.10.10.88 port 43114: no matching host key type found. Their offer: [email protected] [preauth]
上面信息因为是需要,连接到10.10.10.88这台服务器的。
查看下版本
sshd -V
OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017
解决方法是:
第一步、
touch ~/.ssh/authorized_keys
第二步、
chmod 600 ~/.ssh/authorized_keys
第三步、
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
第四步、
ssh-keygen -t ed25519
第五步、
cat ~/.ssh/id_ed25519.pub >> ~/.ssh/authorized_keys
第六步、
ssh-keygen -t dsa
cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
第七步、
reboot重启机器
边栏推荐
- MySQL之函数&视图&导入导出
- SQL labs 5-6 customs clearance notes
- XML modeling
- mysql和sql server的设置优化及使用
- Solve the problem that the time format of manually querying Oracle database is incorrect (date type)
- NepCTF 2022 MISC <签到题>(极限套娃)
- The 6th "Blue Hat Cup" National College Students' Cyber Security Skills Competition - preliminary writeup
- phxpaxos安装编译流程
- Principle of file upload vulnerability
- Custom MVC (Part 2)
猜你喜欢

General Query & paging code

美联储布拉德:上周就业报告表明美国经济稳健,可以承受更高的利率

数字藏品系统开发:企业布局元宇宙数字藏品

MySQL之账号管理&&四大引擎&&建库建表

MySQL增删改查&&高级查询语句

DVWA learning notes

Fed Brad: last week's employment report showed that the U.S. economy is robust and can withstand higher interest rates

自定义MVC的使用&增删改查

C语言中的分支和循环语句归属

MySQL Index & execution plan
随机推荐
DVWA learning notes
JS event loop
简单实现矩形面积块
C语言中的流氓goto语句
js的事件执行机制(Event loop)
NepCTF2022 Writeup
Inheritance mode of JS
my_ Implementation of strcpy (classic, simple, practical, collection)
NepCTF 2022 MISC <签到题>(极限套娃)
NFT数字藏品系统开发:深圳晚报《美好时光遨游记》数字藏品上线秒磬
MySQL add, delete, modify, query & advanced query statements
The 6th "Blue Hat Cup" National College Students' Cyber Security Skills Competition - preliminary writeup
ETH转账次数达到一个月高点
第一篇博客
[untitled]
Flex+js realizes that the height of the internal box follows the maximum height
美联储布拉德:上周就业报告表明美国经济稳健,可以承受更高的利率
【6.28】
MySQL索引&&执行计划
TypeScript 高级类型