Skip to content
Snippets Groups Projects
Commit 484eda3c authored by Adam Seishas's avatar Adam Seishas Committed by Karl Kornel
Browse files

sshd_config.erb: If PasswordAuthentication is disabled, also remove this...

sshd_config.erb: If PasswordAuthentication is disabled, also remove this method from AuthenticationMethods
parent ac2fb6ee
No related branches found
No related tags found
No related merge requests found
...@@ -84,7 +84,7 @@ GSSAPIStoreCredentialsOnRekey yes ...@@ -84,7 +84,7 @@ GSSAPIStoreCredentialsOnRekey yes
<% if (@pam_duo) then -%> <% if (@pam_duo) then -%>
# Require both (GSS-API|PASSWORD) and PAM. # Require both (GSS-API|PASSWORD) and PAM.
AuthenticationMethods gssapi-with-mic,keyboard-interactive:pam password,keyboard-interactive:pam AuthenticationMethods gssapi-with-mic,keyboard-interactive:pam<% if password then %> password,keyboard-interactive:pam<% end %>
KerberosAuthentication yes KerberosAuthentication yes
<% end -%> <% end -%>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment