switched back to original autossh config (fixed problem)

This commit is contained in:
root 2017-03-02 21:12:12 +00:00
parent 02ac4c9bdc
commit 0c9536d53c
1 changed files with 6 additions and 2 deletions

View File

@ -23,7 +23,9 @@ sudo -u automation /home/automation/chch-power/run.sh
sleep 60
while /bin/true;
do
/usr/bin/autossh -N -M 0 -o "ServerAliveInterval 5" -o "ServerAliveCountMax 3" -4 -R '127.0.0.1:2322:127.0.0.1:22' automation@vbox.chch.it
# cat ~/.ssh/authorized_key
# permitopen="127.0.0.1:20023",command="",no-pty,no-agent-forwarding,no-X11-forwarding ssh-rsa AAAA...
AUTOSSH_FIRST_POLL=30 AUTOSSH_POLL=15 /usr/bin/autossh -N -M 20023 -4 -R '127.0.0.1:2322:127.0.0.1:22' automation@vbox.chch.it
sleep 10
done
} &
@ -33,7 +35,9 @@ disown $!
sleep 60
while /bin/true;
do
/usr/bin/autossh -N -M 0 -o "ServerAliveInterval 5" -o "ServerAliveCountMax 3" -4 -R '127.0.0.1:2322:127.0.0.1:22' cloudbot@vcup.chch.it
# cat ~/.ssh/authorized_key
# permitopen="127.0.0.1:20025",command="",no-pty,no-agent-forwarding,no-X11-forwarding ssh-rsa AAAA...
AUTOSSH_FIRST_POLL=30 AUTOSSH_POLL=15 /usr/bin/autossh -N -M 20025 -4 -R '127.0.0.1:2322:127.0.0.1:22' cloudbot@vcup.chch.it
sleep 10
done
} &