diff --git a/sysconfig/etc_rc.local b/sysconfig/etc_rc.local index a1f80e1..d1ecac6 100755 --- a/sysconfig/etc_rc.local +++ b/sysconfig/etc_rc.local @@ -25,8 +25,8 @@ sudo -u automation /home/automation/chch-power/run.sh do # 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 + autossh automation@vbox.chch.it -M 0 -o "TCPKeepAlive yes" -o "ServerAliveInterval 5" -o "ServerAliveCountMax 3" -o "ExitOnForwardFailure yes" -N -4 -R '127.0.0.1:2322:127.0.0.1:22' + sleep 30 done } & disown $! @@ -37,8 +37,8 @@ disown $! do # 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 + autossh cloudbot@vcup.chch.it -M 0 -o "TCPKeepAlive yes" -o "ServerAliveInterval 5" -o "ServerAliveCountMax 3" -o "ExitOnForwardFailure yes" -N -4 -R '127.0.0.1:2322:127.0.0.1:22' + sleep 30 done } & disown $!