linux ssh 登录报错

葫芦的运维日志

浏览量 6157 2010/02/28 15:20

1.报错 no matching key exchange method found. Their offer: diffie-hellman-group1-sha1

➜  ~ ssh test@99.99.99.99 -p 99
Unable to negotiate with 99.99.99.99 port 99: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1

2.报错no matching host key type found. Their offer: ssh-dss

➜  ~ ssh test@99.99.99.99 -p 99 -oKexAlgorithms=+diffie-hellman-group1-sha1
Unable to negotiate with 99.99.99.99 port 99: no matching host key type found. Their offer: ssh-dss

最终解决:

ssh test@99.99.99.99 -p 99 -oKexAlgorithms=+diffie-hellman-group1-sha1 -oHostKeyAlgorithms=+ssh-dss -oCiphers=+aes256-cbc

葫芦的运维日志

打赏

留言板

留言提交后需管理员审核通过才会显示

© 冰糖葫芦甜(bthlt.com) 2025 王梓打赏联系方式陕ICP备17005322号-1