如何使用dropbear连接到iLO的ssh端口?【已解决】
- kingchy我想使用路由通过ssh来进行一些简单的iLO管理,比如,路由开机的时候自动打开一些iLO管理的机器,例如Gen8.
但是在尝试的过程中发现连不上:复制代码- admin@RT-AC68U:/jffs/scripts# ssh [email protected]
- ssh: Connection to [email protected]:22 exited: Bad hostkey signature
随后发现,路由上的ssh是dropbear:复制代码- admin@RT-AC68U:/tmp/home/root# ssh -V
- Dropbear v2017.75
然后在mac上用brew安装了dropbear进行尝试,发现是同样的问题:复制代码- a@Apple $ dbclient [email protected]
- dbclient: Connection to [email protected]:22 exited: Bad hostkey signature
- a@Apple $ dbclient -V
- Dropbear v2019.78
使用dropbear连接到正常到debian/ubuntu是没问题的,使用mac自带的ssh连iLO的ssh也没有问题:复制代码- a@Apple $ ssh [email protected]
- [email protected]'s password:
- User:Administrator logged-in to ILOxxxxxxx.(192.168.x.51 / FExx::xxxx:xxxx:xxxx:xxxx)
- iLO Advanced 2.61 at Jul 27 2018
- Server Name: GEN8
- Server Power: Off
- </>hpiLO->
看来问题是出在iLO自带的ssh服务器端和dropbear的兼容性上了。因为dropbear不带--verbose参数,也没有办法看问题出在哪一步。
万能的D版啊,有谁知道如何才能使用dropbear连到iLO的ssh吗?或者知道如何才能从路由连到iLO进行一些管理操作吗?
---
解决方法:
1. 安装Entware
2. opkg安装openssh-client - admin@RT-AC68U:/jffs/scripts# ssh [email protected]
- kingchy顶一个,有人知道如何解决吗?
- Cappuccin0治本的办法是在路由器上面对应的行从known_host里面删掉 然后重新ssh的时候就会提示是否把hostkey加进去和正常登录
治标的办法是用-yy来强制跳过hostkey检查 注意是两个y复制代码- ssh -yy admin@hostname
- kingchy回复3#妙药
Mac上和路由上都分别测试了,还是不行。下面是路由上测试的结果:复制代码- admin@RT-AC68U:/jffs/scripts# find / -name known*
- admin@RT-AC68U:/jffs/scripts# ssh [email protected]
- Host '192.168.x.51' is not in the trusted hosts file.
- (ssh-rsa fingerprint sha1!! 19:eb:bd:26:d4:a4:91:5c:9e:55:d1:b1:00:cb:84:9c:67:3a:a4:xx)
- Do you want to continue connecting? (y/n) y
- ssh: Connection to [email protected]:22 exited: Bad hostkey signature
- admin@RT-AC68U:/jffs/scripts# ssh -yy [email protected]
- ssh: Caution, skipping hostkey check for 192.168.x.51
- ssh: Connection to [email protected]:22 exited: Bad hostkey signature
- admin@RT-AC68U:/jffs/scripts# find / -name known*
- kingchy
- kingchyMac上的结果复制代码
- a@Apple $ cat ~/.ssh/known_hosts|grep "\.51"
- a@Apple $ dbclient -yy [email protected]
- dbclient: Caution, skipping hostkey check for 192.168.x.51
- dbclient: Connection to [email protected]:22 exited: Bad hostkey signature
- a@Apple $ cat ~/.ssh/known_hosts|grep "\.51"
- Cappuccin0回复6#kingchy
擦 搜了下好像还真是已知问题https://github.com/ericpaulbishop/gargoyle/issues/363
你的服务器或者客户端版本有可能升级或者降级么 iOS fly ~ - kingchy回复8#Cappuccin0
服务器端恐怕升级不了,那是hp的ilo自带的ssh server。
客户端升级有可能也不能解决问题。那篇文章我也看过,是15年的。路由上dropbear的版本是17年的,mac上是19年的,都有问题。
能请您把您路由上的ssh客户端共享一下吗?或者您知道去哪里获得merlin的最新ssh客户端? - kingchy从merlin下载了最新固件,提取了里面的dropbear,结果依旧:复制代码
- admin@RT-AC68U:/jffs/scripts# ./dropbearmulti ssh -V
- Dropbear v2019.78
- admin@RT-AC68U:/jffs/scripts# ./dropbearmulti ssh -yy [email protected]
- ssh: Caution, skipping hostkey check for 192.168.x.51
- ssh: Connection to [email protected]:22 exited: Bad hostkey signature
- admin@RT-AC68U:/jffs/scripts# ./dropbearmulti ssh -V
- dalinlyz还有空间就装个openssh-client呗
- kingchy
- kingchy您知道有什么简便的方法可以安装openssh-client吗?
- kingchy最后通过安装entware,然后安装openssh-client的方式解决了这个问题。