Created
October 26, 2014 15:29
-
-
Save polymorphm/165d792a3d367702fda7 to your computer and use it in GitHub Desktop.
example of ~/.config/systemd/user/ssh-proxy.service .. run it as: systemctl --user start ssh-proxy
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 characters
[Unit] | |
After=network.target | |
[Service] | |
Type=forking | |
ExecStart=/usr/bin/ssh -o ServerAliveInterval=60 -NfD 1080 MY_SUPER_USER_NAME@MY_SUPER_SERVER_NAME | |
Restart=on-failure | |
RestartSec=10s | |
[Install] | |
WantedBy=default.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment