Worried that network monitoring at school or work is going to reveal passwords? How much to you trust the wireless Internet at the airport. If the network is unencrypted (and possibly even if it is), anyone could be watching your Internet browsing and maybe pick up a password or two. The following instructions will help you set use SSH to provide some more security.

  1. Open up Terminal
  2. Type "ssh -D [port number] example.com" WHERE [port number] is replaced with a port and example.com is replaced with the domain of your SSH server. For example, if my ssh server were located at ssh.example.com, I would type: ssh -D 8081 ssh.example.com
  3. Log in to the SSH server. Enter whatever username and password are required.

Now that your SSH connection is set up, I will give instructions for how to set this up in Firefox 3.6 and Google Chrome.

If you are using Firefox:

  1. Open the Preferences menu (on a Mac, this is under the Firefox menu item).
  2. Click "Advanced"
  3. Click "Network"
  4. Under "Connection" click "Settings"
  5. Select Manual proxy configuration
  6. Fill in SOCKS Host as with Port set to 8081 (or whatever port you chose above).
  7. Click OK and close the preferences dialog.

You should now be good to go. All of your web browsing (in Firefox) will pass through the secure tunnel between you and the SSH server.

If you are using Google Chrome:

Google Chrome is an excellent browser, but unfortunately you cannot configure a proxy server in the same way as Firefox. The settings do not exist. Fortunately developer Mhd Hejazi has created Proxy Switchy!, a Chrome extension that allows easy access to changing proxy settings.

  1. Download and installĀ Proxy Switchy! from the Chrome extensions website.
  2. As soon as Proxy Switchy installs, it will pop up with a window where you can fill in your proxy server information
  3. Name the profile whatever you like. We'll call it "Home Proxy" just for fun.
  4. Leave all spaces blank except SOCKS Host and Port. Enter for the host and 8081 (or whatever you chose above) for the port.
  5. I select SOCKS v5 in the radio button below. If that doesn't work for you, try SOCKS v4.
  6. Click Save
  7. Now all you have to do to enable the proxy is click the little globe icon next to the address bar and select "Home Proxy." To return to the unproxied Internet simply select Direct Connection.
  8. To quickly toggle back and forth between proxy enabled and disabled, you can change the "General" settings to enable quick switch and select Home Proxy for Profile 2 on the binary switch. Save your settings, and then just clicking the globe icon will toggle between your two connections.

One thing you'll need to know about the proxy: It does not provide a completely encrypted Internet connection. It will only provide an encrypted connection between you and your SSH proxy server. If someone is monitoring the traffic between your SSH server and the sites you visit, this will not help. Using SSH to proxy essentially provides you the same security of browsing the Internet from your SSH server, whatever that means for you.