Skip to content

Instantly share code, notes, and snippets.

@mkgin
Created February 7, 2017 13:39
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 mkgin/5d6a1aac5744275160d8849e5c538136 to your computer and use it in GitHub Desktop.
Save mkgin/5d6a1aac5744275160d8849e5c538136 to your computer and use it in GitHub Desktop.
SSH authorized keys tunnel only
# .ssh/authorized_keys
# use the -T and -N options.... "ssh -T -N ......"
no-pty,no-X11-forwarding,command="/bin/echo tunnel only" ssh-rsa AAA......... abc@def
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment