In the client execute:
$ ssh -N -D
where CompB is the server
To use this ssh tunneling with internet browser, for example firefox, change the "Connection Settings", under "Manual proxy configuration", update the "SOCKS Host:" to localhost:any_free_port. Notice that any_free_port here must be the same one as the one used in ssh.
Opera browser does not have socks proxy configuration. One way to do it is by using "tsocks."
$ sudo apt-get install tsocks
edit /etc/tsocks.conf, and change
server = 127.0.0.1 # this is localhost