bryanlloydharris
asked on
ssh twice on one command line?
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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Just in case someone else comes across this question, I used ssh -t host "ssh -t host2" to get it to work.
ASKER