Tunneling

To use SSH tunnels, you'll need Putty for Windows, SSH Tunnel Manager on MacOS X, or the plain ssh command on Linux/UNIX. There are also other 3rd party solutions, which may make setting up of SSH tunnel more convenient to you.

Also refer to: enabling Tunneling

FIXME Needs a guide on this (finally)

With putty:

Source port is the port you will use to connect to. Just pick a free port number for this.

Destination is the port you want to connect to. This is the destination viewed from you SSH session. (use 127.0.0.1)

An example to connect to postgreSQL:

Don't forget to click on Add!

Now you connect to 127.0.0.1:4001 on you local machine.

With Plain Old SSH:

A command like this works, here's what the options mean. (Here I'm forwarding port 3306, or mysql)

ssh -2 -f -c blowfish -N -C <username>@<server> -L 3307/127.0.0.1/3306