Skip to content

Instantly share code, notes, and snippets.

@benyanke
Last active July 4, 2018 14:40
Show Gist options
  • Save benyanke/5efc8000befef50fa8c4290302282723 to your computer and use it in GitHub Desktop.
Save benyanke/5efc8000befef50fa8c4290302282723 to your computer and use it in GitHub Desktop.
SSH Reverse Tunnel Configuration
#!/usr/bin/env bash
# run me in cron every minute and on boot
ssh revtun@[host] -i [keypath] -R 8202:localhost:22 -N -f
# Add one line per client
# Client name
command="/bin/false",no-user-rc,no-pty,no-agent-forwarding,no-X11-forwarding,permitopen="127.0.0.1:8202" ssh-rsa AAAAB3NzaC1yc2[....]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment