Friday, June 24, 2005

SSH to create a SOCKS proxy

Recently I have found this great way to use SSH to set up a SOCKS proxy. This is useful because it allows me to create an encrypted tunnel from my laptop at home to my computer at college, and so any external service thinks I am sitting at my desk at college. This is very useful as it allows me to access electronic journals at home (they are normally restricted to computers on the Uni network).

So how do you do it? Really simply, just SSH to a machine as normal but add -D and a non-prioveledge port. For example,

ssh -D 10022

After that you simply set the proxy settings of your browser to SOCKS with the port you defined above.

Very handy