AutoSocks is a bash script which automates an ssh tunnel through socks proxy on OSX.