Skip to content

Commit a8ffb9f

Browse files
Allow to configure ChallengeResponseAuthentication
Closes dev-sec#125
1 parent 5d58452 commit a8ffb9f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

attributes/default.rb

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
default['ssh']['allow_agent_forwarding'] = false # sshd
6666
default['ssh']['allow_x11_forwarding'] = false # sshd
6767
default['ssh']['use_pam'] = false # sshd
68+
default['ssh']['challenge_response_authentication'] = false # sshd
6869
default['ssh']['deny_users'] = [] # sshd
6970
default['ssh']['allow_users'] = [] # sshd
7071
default['ssh']['deny_groups'] = [] # sshd

templates/default/opensshd.conf.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ UsePAM <%= ((@node['ssh']['use_pam']) ? "yes" : "no" ) %>
107107
<% passsword_auth = @node['ssh']['server']['password_authentication'] || !!@node['ssh']['password_authentication'] -%>
108108
PasswordAuthentication <%= (passsword_auth ? "yes" : "no" ) %>
109109
PermitEmptyPasswords no
110-
ChallengeResponseAuthentication no
110+
ChallengeResponseAuthentication <%= (@node['ssh']['challenge_response_authentication'] ? "yes" : "no" ) %>
111111

112112
# Only enable Kerberos authentication if it is configured.
113113
KerberosAuthentication no

0 commit comments

Comments
 (0)