当前位置: 首页 >> Linux >> 【解决】ssh远程报错 >> 正文

【解决】ssh远程报错

1年前 (2023-02-09)     作者:Jiaozn     分类:Linux     阅读次数:4907     评论(0)    

 ssh root@192.168.0.235

Unable to negotiate with 192.168.0.235 port 22: no matching key exchange method found. Their offer: diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1


ssh登录一些老旧设备,出现以下问题:

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

解决:-oKexAlgorithms=+diffie-hellman-group1-sha1

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

解决:-oHostKeyAlgorithms=+ssh-dss

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

解决:-oCiphers=+3des-cbc


最后命令是这样的:

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


除非注明,发表在“Jiaozn的博客”的文章『【解决】ssh远程报错』版权归Jiaozn所有。 转载请注明出处为“本文转载于『Jiaozn的博客』原地址https://www.jiaozn.com/reed/838.html
0

评论

发表评论   

昵称*

E-mail*(建议输入,以便收到博主回复的提示邮件)

网站

分享:

支付宝

微信