SSH Tunnel as Socks Proxy Server for the Web Browser

If you have SSH access to a remote host and you want to use it as proxy server for your web browser you can do so easily by opening up a SSH tunnel:

[sourcecode language=”bash”]
ssh -D 9999 username@host.com -N
[/sourcecode]

If you now set your socks proxy in your web browser to localhost, port 9999 your traffice is redirect via host.com. In firefox you can do so in Preferences->Network->Settings

Leave a Reply

Your email address will not be published. Required fields are marked *