<p>SPANISH: Puede que a veces podamos necesitar crear un túnel y dejarlo funcionando como si se tratase de un servicio cualquiera, pero por defecto, el cliente de 'ssh' no se lanza correctamente usando el método común de usar '&' y tampoco se lanza correctamente cuando lo colocas en un script de systemvinit/upstart. En estos casos, podemos usar estas opciones para lanzarlo: '-f -N' Se recomienda el uso de autenticación por certificados, ya que de otra manera nos pediría el password y no sería muy útil :P Concretamente, el ejemplo que expongo lo he usado esto para hacer un mapeo de puertos desde un VirtualBox (hierro) y una VM alojada y conectada en él por NAT :] Esta conexión se hacía desde la VM al hierro.</p>
<p>ENGLISH: Sometimes we may need create a tunnel and leave it running in background as if it were any other service, but 'ssh' client by default does not forks into background well using the common '&' and it is not forked neither when you try to launch it via systemvinit/upstart script. In these cases, we can use this arguments to launch it into background: '-f -N'. It is recommended to use certs to authenticate with the foreign host, since in other way, it will prompt us for password and wouldn't be too useful as service :P I have used this to setup a NAT port forwarding between a VirtualBox host and a VM :]</p>