Wednesday, October 3, 2012

SSH Tunneling

For single hop:
ssh -L LOCAL_PORT:REMOTE_HOST:REMOTE_PORT USERNAME@REMOTE_HOST
For multiple hops the following is better:
ssh -A -t -l user jump-host -L 8080:localhost:8080
ssh -A -t -l user webserver.dmz -L 8080:localhost:8080