SSH Tunneling

 

To set up an SSH tunnel from a unix or mac machine (I hear that on mac you must use 127.0.0.1 as localhost won't always work), use the following syntax:

ssh username@remote.host.ip.address -L localport:127.0.0.1:remoteport

Then connect your application to 127.0.0.1:localport