This question already has an answer here:
I used to have my PC on Windows and use Putty to forward internet traffic so it would get through my VPS (located in another country) and give me the opportunity to look like I'm located there whenever I needed it. I would connect putty to my server, define a dynamic port forwarding, and then change Firefox settings to use this port as a proxy.
I do not have the slightest idea on how to do this from my fresh Ubuntu install. Can anyone help?