Skip to content

Instantly share code, notes, and snippets.

@supersonictw
Last active September 19, 2023 09:47
Show Gist options
  • Save supersonictw/e63a864bdebcd937dd4017084e633d57 to your computer and use it in GitHub Desktop.
Save supersonictw/e63a864bdebcd937dd4017084e633d57 to your computer and use it in GitHub Desktop.
[Install]
WantedBy=multi-user.target
[Unit]
Description=dynamic-http-tunnel
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
Restart=always
User=supersonic
ExecStart=/usr/bin/autossh -R3570:127.0.0.1:3570 ssh_server.example.com -N
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment