[Unit] Description=Keeps an SSH tunnel to 'bpfilip.dk' open After=network-online.target [Service] ExecStart=/usr/bin/autossh -M 0 -N -q -o "ServerAliveInterval 60" -o "ServerAliveCountMax 3" bpfilip.dk ExecStop=/usr/bin/killall -s KILL autossh User=1000 Group=1000 Restart=always RestartSec=3 [Install] WantedBy=multi-user.target