That's what ssh tunnelling was invented for
Prior to socks/dynamic tunneling support in ssh I wrote a bit of perl to proxy http connections on a shell server, forwarded a local port on my machine to it then set my browser to point to the local port as it's http proxy. Worked great. These days it's far easier (can't remember exactly when dynamic was added to ssh server, but it was added to putty in 2003 so i guess it was probably new in v2). Assuming you're connecting from windows using putty, add a dynamic tunnel before connecting from port 8080, connect then set 8080 as your socks server in your browser. Job done.