Debian/Ubuntu:
# apt-get instal autossh
# /usr/bin/autossh -L 192.168.1.110:25:localhost:25 khanh@remoteserver.com -p 22 -N -f
Centos/RHEL:
# yum install autossh
# /usr/bin/autossh -M29001 -f -N -L192.168.1.110:25:localhost:25 khanh@remoteserver.com -p 22
Usage: autossh [-V] [-M monitor_port[:echo_port]] [-f] [SSH_OPTIONS]