To do what you are wanting, I recommend sshuttle https://github.com/apenwarr/sshuttle.
You use it like this:
./sshuttle -r username@sshserver 0.0.0.0/0 -vv
It will tunnel all your TCP traffic automatically for you. You can add the --dns argument to have it tunnel your DNS traffic as well.
If you only want to tunnel specific programs I would recommend proxychains http://proxychains.sourceforge.net/.
Once it is installed, start your ssh socks proxy like this:
ssh -fND 127.0.0.1:<local port> username@sshserver
This will start a "SOCKS" proxy listening on .
Then edit /etc/proxychains.conf to point to the same port as .
Finally start your program that you want proxy-ed like so:
proxychains <program name>
It should just work. However, a few programs will have trouble working with Proxy Chains. Also keep in mind, that with Firefox, you have to change additional items under about:config to force it to do DNS lookups through the proxy instead of bypassing it.
As an additional note, on web browsers. If they support socks proxies, you don't need to do anything additional to get them to use the above mentioned, ssh tunnel, just enter 127.0.0.1 for the SOCKS proxy server and the <local port> for the proxy port.