diff --git a/sysconfig/etc_rc.local b/sysconfig/etc_rc.local index d1ecac6..42df5f6 100755 --- a/sysconfig/etc_rc.local +++ b/sysconfig/etc_rc.local @@ -24,8 +24,8 @@ sudo -u automation /home/automation/chch-power/run.sh while /bin/true; do # cat ~/.ssh/authorized_key - # permitopen="127.0.0.1:20023",command="",no-pty,no-agent-forwarding,no-X11-forwarding ssh-rsa AAAA... - 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' + # restrict,command="",port-forwarding ssh-rsa AAAA... + autossh ssh-port-forwarding@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 } & @@ -36,8 +36,8 @@ disown $! while /bin/true; do # cat ~/.ssh/authorized_key - # permitopen="127.0.0.1:20025",command="",no-pty,no-agent-forwarding,no-X11-forwarding ssh-rsa AAAA... - 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' + # restrict,command="",port-forwarding ssh-rsa AAAA... + autossh ssh-port-forwarding@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 } &