-
-
Save datatypevoid/83b7155dbdf393af7a621a881a7f20b1 to your computer and use it in GitHub Desktop.
Revisions
-
guettli revised this gist
Dec 22, 2017 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,6 @@ # Reliable persistent SSH-Tunnel via systemd (not autossh) # https://gist.github.com/guettli/31242c61f00e365bbf5ed08d09cdc006#file-ssh-tunnel-service [Unit] Description=Tunnel for %i After=network.target -
guettli created this gist
Dec 22, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ # Reliable persistent SSH-Tunnel via systemd (not autossh) # [Unit] Description=Tunnel for %i After=network.target [Service] User=tunnel ExecStart=/usr/bin/ssh -o "ExitOnForwardFailure yes" -o "ServerAliveInterval 60" -N tunnel@%i Restart=always RestartSec=5s StartLimitInterval=0 [Install] WantedBy=multi-user.target