I finally figured out port forwarding. I know this is something that I should have understood and long, long, long time ago, but I just couldn’t quite get it working. Here’s the code that I used to get to my port forwarding working:

ssh -L 2022:gunnerweb.net:22 gunnerweb.net -l travis

This is essentially forwarding all local traffic (to localhost) on port 2022 and sending it to gunnerweb.net on port 22. Port forwarding! Why is this necessary? Well, for most people it isn’t. It allows me to get into the remote box through a secure channel.

I guess this is a somewhat poor example since port 22 is already secure, but it allows me to quickly open multiple connections quickly since the ‘pipe’ is already in place.