Skip to content

Instantly share code, notes, and snippets.

@colstrom
Last active December 9, 2016 19:55
Show Gist options
  • Select an option

  • Save colstrom/b1d0cc2c96f2959199f4dc1113af18b2 to your computer and use it in GitHub Desktop.

Select an option

Save colstrom/b1d0cc2c96f2959199f4dc1113af18b2 to your computer and use it in GitHub Desktop.
service-ssh-tunnel: creates an SSH tunnel
name = ssh-tunnel
author = Chris Olstrom
license = MIT
provides = service/ssh-tunnel
requires
command/execlineb
command/ssh
#!/bin/execlineb
ssh -N -R 2222:localhost:22 $SSH_TUNNEL_ENDPOINT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment