Skip to content

Instantly share code, notes, and snippets.

@KellerFuchs
Created May 31, 2018 18:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KellerFuchs/a911d567383f6599205451335e64eb31 to your computer and use it in GitHub Desktop.
Save KellerFuchs/a911d567383f6599205451335e64eb31 to your computer and use it in GitHub Desktop.
Socket-activated SSH forwarding
[Socket]
ListenStream=127.0.0.1:6666
Accept=true
[Install]
WantedBy=sockets.target
[Service]
ExecStart=/usr/bin/ssh -W localhost:6667 tilde.town
StandardInput=socket
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment