#!/bin/bash
export AUTOSSH_PIDFILE="/tmp/tunnel-ssh.pid"
SSHPORT=$(cat /var/www/data/PORT)
/usr/bin/autossh -nNT -f -R smartdoorsystems.com:$SSHPORT:localhost:22 -i /root/.ssh/id_rsa device@smartdoorsystems.com &
exit