diff --git a/sysconfig/etc_rc.local b/sysconfig/etc_rc.local index ae3e018..d90bff5 100755 --- a/sysconfig/etc_rc.local +++ b/sysconfig/etc_rc.local @@ -25,7 +25,7 @@ sudo -u automation /home/automation/chch-power/run.sh while true; do # cat ~/.ssh/authorized_key # restrict,command="",port-forwarding ssh-rsa AAAA... - ssh ssh-port-forwarding@vbox.chch.it -TNnqakx -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' -L '127.0.0.1:2525:127.0.0.1:25' + ssh ssh-port-forwarding@vbox.chch.it -TNnqakx -o "TCPKeepAlive yes" -o "ServerAliveInterval 5" -o "ServerAliveCountMax 3" -o "ExitOnForwardFailure yes" -N -4 -R 'localhost:2322:localhost:22' -L 'localhost:2525:localhost:25' -R 'localhost:9991:suff:80' sleep 30 done ) & @@ -37,7 +37,7 @@ disown while true; do # cat ~/.ssh/authorized_key # restrict,command="",port-forwarding ssh-rsa AAAA... - ssh ssh-port-forwarding@vcup.chch.it -TNnqakx -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' + ssh ssh-port-forwarding@vcup.chch.it -TNnqakx -o "TCPKeepAlive yes" -o "ServerAliveInterval 5" -o "ServerAliveCountMax 3" -o "ExitOnForwardFailure yes" -N -4 -R 'localhost:2322:localhost:22' sleep 30 done ) &