Secure browser sessions by proxying through SSH

  1. Download Putty and Puttygen
  2. Run Puttygen
  3. Create a private key; save it somewhere on your harddrive. Don’t bother with encrypting/passwording it.
  4. Copy the public key (shown in the box) with Ctrl-C
  5. Login to the server you want to proxy through, as normal, with Putty
  6. Edit .ssh/authorized_keys - you may have to create the .ssh folder
  7. Paste your public key on one long line into the file and then log out of the server
  8. Load your Putty settings for the site
  9. On the left, go to Connection -> Data and enter your username where it says “Autologin Username”
  10. On the left, go to Connection -> SSH -> Auth, and select your private key
  11. On the left, go to Connection -> SSH -> Tunnels, type source port 1080 (or whatever you want), “dynamic” remote, and click “Add”
  12. Go back to the main settings panel and be sure to save your settings
  13. Doubleclick the settings; you should login automatically without a password
  14. Go into your Firefox and select localhost:1080 as the SOCKS proxy for all your connections.

Leave a Reply