Linux中ssh登录旧设备的方法

最近运维中通过跳板机链接其他linux设备出现了一些问题解决方案做一些总结

问题1

Unable to negotiate with 192.168.xx.xx port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1

解决方案

ssh -oKexAlgorithms=+diffie-hellman-group1-sha1

问题2

Unable to negotiate with 192.168.xx.xx port 22: no matching host key type found. Their offer: ssh-dss

解决方案

ssh -oHostKeyAlgorithms=+ssh-dss

问题3

Unable to negotiate with 192.168.xx.xx port 22: no matching cipher found. Their offer: 3des-cbc

解决方案

ssh -oCiphers=+3des-cbc

完整命令如下:

ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -oHostKeyAlgorithms=+ssh-dss -oCiphers=+3des-cbc user@192.168.xx.xx

Linux中ssh登录旧设备的方法-上流阁

*文章为作者独立观点,不代表上流阁立场
本文由 江风成 授权 上流阁 发表,并经上流阁编辑。转载此文章须经作者同意,并请附上出处(上流阁)及本页链接。原文链接https://www.o6c.com/java/2021/01/04/1441.html
发表评论

坐等沙发
相关文章
Linux crontab 的常用定时方式
Linux crontab 的常用定时方式
linux 修改文件和文件夹所有者和组
linux 修改文件和文件夹所有者和组
Linux centOS7 系统   /dev/mapper/cl-root 分区 文件太多删除方案
Linux centOS7 系统 /dev/mapper/cl-r…
Linux CentOS 7  firewall 防火墙 开放端口配置
Linux CentOS 7 firewall 防火墙 开放…
Linux CentOS 下安装nodejs xz 包
Linux CentOS 下安装nodejs xz 包
Linux中 OpenSSH 输入验证错误漏洞(CVE-2019-16905) 修复解决方案
Linux中 OpenSSH 输入验证错误漏洞(CVE-…
javaweb开发程序员php开发,微信开发。接受定制开发

最新评论