use more convenient ssh options on the server
This commit is contained in:
parent
4e0c9e3ba1
commit
43e85ec8e7
|
@ -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
|
||||
} &
|
||||
|
|
Loading…
Reference in New Issue