Sidestep is a neat little utility that will automatically activate a VPN or SSH connection to secure your traffic when it detects you’re on an unsecured Wi-Fi network:
It also sets the global SOCKS proxy to send all your traffic through SSH