Skip to content

Instantly share code, notes, and snippets.

@mtdefelice
Last active June 30, 2020 19:45
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 mtdefelice/3fbedf7dfd3074496f1db9d168454391 to your computer and use it in GitHub Desktop.
Save mtdefelice/3fbedf7dfd3074496f1db9d168454391 to your computer and use it in GitHub Desktop.
[Unit]
Description=Serveo Tunnel
After=network-online.target
[Service]
User=pi
Type=simple
ExecStart=/usr/bin/ssh \
-vv \
-o ExitOnForwardFailure=yes \
-o ServerAliveInterval=30 \
-o ServerAliveCountMax=3 \
-o UserKnownHostsFile=/dev/null \
-o StrictHostKeyChecking=no \
-R <MY_SUBDOMAIN>:80:localhost:8080 serveo.net
StandardInput=tty-force
RestartSec=30
Restart=always
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment