SSH Tunnel in OS X

Open tunnel:

$ ssh -L 8080:remote-host:80 -f -C -q -N me@myserver.com

Close tunnel:

$ ps -aux | grep ssh
$ kill {pid}