Maintenance: GitLab GKE platform upgrade and software upgrade on Friday Oct. 22 at 9 p.m. Service may not be available between 9 p.m. and 9:20 p.m.

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
...@@ -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 -%>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment