SSH as a proxy

05 Jun, 2008

I have yet to set up OpenVPN and making it work with NetworkManager (this is planned some time after I install FreeWRT on the router) so I have naturally been a bit hesitant to connect to unsecured wireless networks. It turns out there is an easy way to secure your connection with tools already installed, SSH:

Then I found that ssh has a really nifty -D option to implement a SOCKS5 proxy. Therefore all I needed to do was ssh -D localhost:8080 remote.box and then setup Firefox to use localhost:8080 as a SOCKS proxy server.

Thank you Ian Wienand for sharing this useful tip!

Tags: linux, security, ssh,