From 0c9536d53c2cca8c1ddc144f79183712e8a96295 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 2 Mar 2017 21:12:12 +0000 Subject: [PATCH] switched back to original autossh config (fixed problem) --- sysconfig/etc_rc.local | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sysconfig/etc_rc.local b/sysconfig/etc_rc.local index 34241d3..a1f80e1 100755 --- a/sysconfig/etc_rc.local +++ b/sysconfig/etc_rc.local @@ -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 } &