How to use SSH as a secure Proxy

Besides using SSH to connect to remote network devices or (linux) servers you can also use it to tunnel traffic. If you don’t want anyone to see what you are using the Internet for you can tunnel it through SSH. Here’s how I do it on my linux computer:

user@linux ~ $ssh -D 8080 -f -C -q -N root@host.mysshserverhostname.com

This will forward everything on port 8080 towards my SSH server. Now we can configure a proxy in our webbrowser settings, here’s how to do it in firefox:

firefox proxy settings

Above I configured the SOCKS Host. servername should be localhost and the port 8080. Just click on OK and you will see that all web traffic is redirected through your SSH tunnel. Happy surfing!

Forum Replies

  1. Thanks, i got to try that
    hope to see more posts about linux

Ask a question or join the discussion by visiting our Community Forum