3 ms·
Well, perhaps not quite all routers, like this cheap consumer device: $ ssh root@router uname -a root@router's password: Linux router 2.4.20 #1 Sun Jun 2
by kazinator 10y ago
Well, perhaps not quite all routers, like this cheap consumer device:
$ ssh root@router uname -a
root@router's password:
Linux router 2.4.20 #1 Sun Jun 27 20:13:35 PDT 2010 mips GNU/Linux
The only use case for Expect here is typing in the password, which we can eliminate by administering some SSH keys.
- mypalmike 10y agoAnd then there are the "enterprise switches" from at least one major vendor, whose crappy ssh implementation only supports a single tty channel (no exec channels), so you have to run expect anyhow. :-( $ ssh root@router uname -a Connection closed by shitty ssh implementation. $ ssh root@router Welcome to router! >