Thursday, October 6, 2011

SSH chained port forwarding

I might be late to the party on this, but I just realized that you can chain forwarded ports in ssh!

For example:
ssh -L port1:<ip address>:hostport1 -L port2:<ip address>:hostport2 somewhere.com
I'll admit, I'm guilty of opening multiple ssh sessions to forward each port that I needed... Never again!

No comments:

Post a Comment