Created
January 5, 2019 07:11
-
-
Save iRhonin/9164a5c9c187623b1c700747326f3275 to your computer and use it in GitHub Desktop.
Unit file for ssh proxy
This file contains 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] | |
Description=nl SSH proxy service | |
After=network-online.target | |
Wants=network-online.target | |
[Service] | |
ExecStart=/usr/bin/ssh -D 1234 -C -N -F %h/.ssh/config vps-nl -o ServerAliveInterval=1 | |
ExecReload=/bin/kill -s HUP | |
ExecStop=/bin/kill -s TERM | |
Type=idle | |
Restart=always | |
RestartSec=1 | |
StartLimitBurst=100 | |
[Install] | |
WantedBy=default.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Copy this file to
.config/systemd/user/[service-name].service
systemctl --user daemon-reload systemctl --user enable [service-name] systemctl --user start [service-name]