Ball Passing Patterns. There are many different juggling patterns for two or more persons. Here we list a selection of two-person patterns. … read more

The Debian Voting System. Description and Im­ple­men­ta­tion of the Debian Voting System … read more

Blog: Using DSSP in the "bio3d" R package. How to use the DSSP program in R? … read more

tunnelling http over ssh

By , on [atom feed]

Recently I learned how to tunnel http traffic (e.g. web surfing) over an ssh connection. The effect of this is that you can browse the web on one computer A, say, but for the web servers you are visiting it will look like your requests originate from a different host B. You need to be able to log into host B via ssh for this to work.

There are several situations where such tunneling is useful:

Setting up a tunnel is done in two steps:

  1. Create a tunnel using the following command:
    ssh -D 8080 -f -q -N login@host
    

    You will need to replace login and host with your login details. The machine you type this command on is machine A in the description above, and host is machine B. This command will start an ssh process which will run in the background and will act as a tunnel to forward the web traffic.

  2. Set up your web browser to use a SOCKS web proxy on host localhost and port 8080. Both SOCKS4 and SOCKS5 should work. This will tell the web browser to connect to the local end of the ssh tunnel.

This is an excerpt from Jochen's blog.
Newer entry: fast vector operations using SSE2
Older entry: parallel

Copyright © 2010, Jochen Voss. All content on this website (including text, pictures, and any other original works), unless otherwise noted, is licensed under a Creative Commons Attribution-Share Alike 3.0 License.