This commit is contained in:
Iwan Clément
2019-05-03 18:06:26 +02:00
parent 977f16cfa3
commit 85c12e3dd7

View File

@@ -6,7 +6,7 @@ After=network.target
[Service]
User=${ANS_REMOTE_USER}
EnvironmentFile=/etc/default/secure-tunnel
ExecStart=/usr/bin/ssh -p ${REMOTE_PORT} -NT -i $HOME/.ssh/{{KEY_NAME}} -o StrictHostKeyChecking=no -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes -R ${RTARGET_PORT}:localhost:22 ${ANS_TARGET_USER}@${TARGET}
ExecStart=/usr/bin/ssh -p ${REMOTE_PORT} -NT -i ${HOME}/.ssh/{{KEY_NAME}} -o StrictHostKeyChecking=no -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes -R ${RTARGET_PORT}:localhost:22 ${ANS_TARGET_USER}@${TARGET}
# Restart every >2 seconds to avoid StartLimitInterval failure
RestartSec=5