Background tunnel (it works with -D for creating a SOCKS proxy, as well)
ssh -f -N -L 2222:localhost:22 username@serveraddr
To avoid connection timeout, install autossh (which uses the very same syntax of the standard ssh). Then:
autossh -f -N -L 2222:localhost:22 username@serveraddr