Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improved the regexp for disabling password login #7

Merged
merged 1 commit into from
May 31, 2018

Conversation

mastak
Copy link
Contributor

@mastak mastak commented May 31, 2018

By default PasswordAuthentication is:

# PasswordAuthentication yes

Regexp like ^(#\s*)?PasswordAuthentication handles all possible variants and skip mention in comments:

# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication.  Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.

@vitalk vitalk merged commit 9e70c21 into vitalk:master May 31, 2018
@vitalk
Copy link
Owner

vitalk commented May 31, 2018

Thank you, @mastak!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants