Putty - equivalent Mac SSH client and commands
This is standard ssh and covered in the man page for TCP forwarding.

ssh -f -L 8080:localhost:443 1.2.3.4 sleep 10


I changed as little from the manual page (8080, 443, 1.2.3.4) so you can find it and the explanation there on OS X. You will want to increase the sleep time if you browser isn't going to connect in the next 10 seconds.