Skip to content

Instantly share code, notes, and snippets.

@niofis
Last active May 26, 2017 22:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niofis/bc24f1b33414fd77d77f to your computer and use it in GitHub Desktop.
Save niofis/bc24f1b33414fd77d77f to your computer and use it in GitHub Desktop.
#/etc/systemd/system/ssh-tunnel.service
[Unit]
Description=SSH tunnel
After=network.target
[Service]
User=niofis
Group=niofis
ExecStart=/bin/sh /home/niofis/ssh-tunnel.sh
RemainAfterExit=yes
KillMode=control-group
#Restart=on-abnormal
Type=oneshot
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment