Merge branch 'master' of git.chch.it:Florz/chch-power

This commit is contained in:
Markus Schmidl 2017-03-02 22:43:28 +01:00
commit e753dcf093
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
} &