The following command will initiate a ssh tunnel and daemonize itself restarting the connection if it drops for any reason:
autossh -f -M 20000 -i /home/user/id_rsa -D 12345 [email protected] -N
The following command will initiate a ssh tunnel and daemonize itself restarting the connection if it drops for any reason:
autossh -f -M 20000 -i /home/user/id_rsa -D 12345 [email protected] -N