Last active
December 27, 2015 02:59
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Match User git | |
PasswordAuthentication no |
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
@findel perhaps it would be better to state something like this in the banner...