-
-
Save skarllot/7248182 to your computer and use it in GitHub Desktop.
Two-factor authentication on SSH with Google authenticator
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
#%PAM-1.0 | |
auth required pam_google_authenticator.so secret=${HOME}/.ssh/google_authenticator | |
auth required pam_sepermit.so | |
auth include password-auth | |
. . . | |
#/etc/pam.d/sshd |
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
. . . | |
# Change to no to disable s/key passwords | |
ChallengeResponseAuthentication yes | |
#ChallengeResponseAuthentication no | |
. . . | |
# /etc/ssh/sshd_config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment