Skip to content

Instantly share code, notes, and snippets.

@samrocketman
Last active December 27, 2015 02:59
Show Gist options
  • Save samrocketman/7255904 to your computer and use it in GitHub Desktop.
Save samrocketman/7255904 to your computer and use it in GitHub Desktop.
/etc/ssh/sshd_config append to disable password auth for SSH on the git user only.
Match User git
PasswordAuthentication no
@samrocketman
Copy link
Author

I just realized a better solution would be to use pam_auth to give a message on password only. Perhaps there's a way to do it on password failure only.

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