Connect to the ssh server
ssh remotehost -D 127.0.0.1:3128 -C
Then use the following proxy settings for the browser:
Proxy Server 127.0.0.1 Port 3128 Activate type SOCKS Proxy