Skip to content

Instantly share code, notes, and snippets.

@polymorphm
Created October 26, 2014 15:29
Show Gist options
  • Save polymorphm/165d792a3d367702fda7 to your computer and use it in GitHub Desktop.
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
[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