Last Updated: February 25, 2016
·
460
· martindownton

Linux Tunnel

Mainly for reference, but could be helpful to others too:

ssh -f -2 user@123.456.7.89 -p 22 -i /home/user/private_key.ssh -L 9876:10.0.0.99:80 -N

I'm using this command to tunnel through a VM to an otherwise off limits live server. I'm using port 80 so apache or equivalent needs to be stopped on the VM.