ssh as a proxy

Sometimes ports are blocked to your local machine and you can only get to them if you are on the client’s machine.

Let’s say you want to connect to port 21 on, but that port is only open to

ssh -N -L

This opens port 1337 on your local machine, and fowards it to port 21 on, using as a proxy.