Skip to content

Instantly share code, notes, and snippets.

@Tasssadar
Created November 28, 2019 17:17
Show Gist options
  • Save Tasssadar/cc919977b7102e0b35fd04960a4783fb to your computer and use it in GitHub Desktop.
Save Tasssadar/cc919977b7102e0b35fd04960a4783fb to your computer and use it in GitHub Desktop.
[Unit]
Description=Octoprint tunel to tasemnice
After=network.target
[Service]
User=autossh
Type=forking
Environment=AUTOSSH_LOGFILE=/home/autossh/autossh.log AUTOSSH_PIDFILE=/home/autossh/autossh.pid
PIDFile=/home/autossh/autossh.pid
ExecStart=/usr/bin/autossh -f -M 10984 -o "PubkeyAuthentication=yes" -o "PasswordAuthentication=no" -R 6661:localhost:80 -N [email protected]
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment