Untitled

View as JSON View RAW
[Unit]
Description=Setup a secure tunnel to %I
After=network.target
 
[Service]
EnvironmentFile=/etc/default/secure-tunnel@%i
ExecStart=/usr/bin/ssh -NT -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes $PORTS $TARGET
 
RestartSec=5
Restart=always
 
[Install]
WantedBy=multi-user.target