Skip to content

Instantly share code, notes, and snippets.

@keriati
Created June 5, 2012 15:26
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 keriati/2875657 to your computer and use it in GitHub Desktop.
Save keriati/2875657 to your computer and use it in GitHub Desktop.
Force git shell with public key auth
command="perl -e 'exec qw(git-shell -c), $ENV{SSH_ORIGINAL_COMMAND}'" ssh-rsa ....
@keriati
Copy link
Author

keriati commented Jun 5, 2012

Put this into your authorized_keys file, for git-shell only keys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment