How to use SSL tunnelling on OS X to give full internet access to some applications while you are on a restricted corporate network?
You can create a local SOCKS proxy by using the dynamic port forwarding function of SSH by running ssh with the -D flag. This will tunnel all traffic of applications that use the local SOCKS proxy through SSH connection.

For example running ssh -D1234 user@host will open a SOCKS proxy on localhost port 1234 that you can direct your applications to.