Saturday, May 9, 2009

SSH SOCKS5 tunnel with PuTTY in Windows

First post, very simple, but something that took me longer than I thought it would to find an answer to online. In Linux it's very easy to use ssh to create a SOCKS5 proxy tunnel through your SSH target. You then point a browser at localhost and some arbitrary port you specify, thus masquerading your local browser as the machine you're SSHed into:

ssh -D 12345 username@remotehost.com.au
The same can be done on Windows just as easily with PuTTY. Download it if you haven't already and put a copy in %SYSTEMROOT% (C:\Windows\). In the Run dialog or search box, enter:

putty -D 12345 username@remotehost.com.au
Login to the remote host. Change Firefox's SOCKS proxy setting to be 'localhost' and whatever port you specify (12345) and browse away.

1 comment:

  1. Another useful ssh trick is the ability to create a vpn style tunnel using ssh. I have done a quick walk through here http://www.thegoldfish.org/2012/11/easy-openssh-vpn-using-tunneling/

    ReplyDelete