ssh twice on one command line?
Posted on 2006-11-09
I would like to ssh to our firewall server and then from there ssh to another server all from within the same command line. Is this possible?
I am using ssh keys, so no passwords are needed if I go first to the firewall and then from the firewall to the other system.
ssh bryan@firewall "ssh bryan@anothersystem"
I've already tried, and it says this:
Pseudo-terminal will not be allocated because stdin is not a terminal.
Killed by signal 2.
I have to press [ctrl]-c to cancel the operation because it doesn't work.