Skip to content

Instantly share code, notes, and snippets.

@develop7
Created May 13, 2014 19:18
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 develop7/bdab20c0d9658f0d2b08 to your computer and use it in GitHub Desktop.
Save develop7/bdab20c0d9658f0d2b08 to your computer and use it in GitHub Desktop.
[Unit]
Description=foo ssh tunnel
[Service]
ExecStart=/usr/bin/ssh -N -L3307:host1.example.com:3306 shell.example.com
[Install]
Also=foo-tunnel.socket
[Unit]
Description=foo ssh tunnel socket
[Socket]
ListenStream=127.0.0.1:3307
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment