Port Forwarding with SSH
If you’ve administered any remote Linux machines then you are already familiar with SSH, but you might not know that you can use SSH for much more than just connecting to a shell on a remote system. By using SSH’s port forwarding features, you can set up encrypted tunnels for many services, or connect to systems behind a firewall from home. [From Port Forwarding with SSH]