Thursday, May 17, 2012

SSH Inception

I must go deeeeper -_-

I have a box on a network that is only accessible via connecting to multiple SSH boxes in succession. the "-t" option in ssh allows me to go straight through all the boxes using one line:

ssh -t ssh user@homeserver -t ssh user@home-desktop

You literally just chain together as many ssh connections as you'd like. They just pass the arguments on and on. If you alias that to something like:

et-phone-home="ssh -t ssh user@homeserver -t ssh user@home-desktop"

then you should be all set.

No comments:

Post a Comment