Je poste ici cette commande que j’utilise souvent car j’ai tendance a oublier apres un certain temps:

ssh -o "ExitOnForwardFailure=yes" -nNT -L localPort:localMachine:remotePort remoteMachine
-N      Do not execute a remote command.  This is useful for just forwarding ports.
-T      Disable pseudo-terminal allocation.
 -n      Redirects stdin from /dev/null (actually, prevents reading from stdin).  This must be used when ssh is run in the background.