use more convenient ssh options on the server

This commit is contained in:
root 2018-10-30 17:52:47 +00:00
parent 4e0c9e3ba1
commit 43e85ec8e7
1 changed files with 4 additions and 4 deletions

View File

@ -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
} &