Skip to content

Commit 3f3cacb

Browse files
author
linaksa
committed
Made template and attribute changes more consistent
1 parent 46002ac commit 3f3cacb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

attributes/default.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
default['ssh']['allow_groups'] = [] # sshd
6767
default['ssh']['print_motd'] = false # sshd
6868
default['ssh']['print_last_log'] = false # sshd
69-
default['ssh']['password_authentication'] = 'yes'
69+
default['ssh']['password_authentication'] = false # sshd
7070
# set this to nil to let us use the default OpenSSH in case it's not set by the user
7171
default['ssh']['use_dns'] = nil # sshd
7272
# set this to nil to let us detect the attribute based on the node platform

templates/default/opensshd.conf.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ HostbasedAuthentication no
104104
# Enable PAM to enforce system wide rules
105105
UsePAM <%= ((@node['ssh']['use_pam']) ? "yes" : "no" ) %>
106106
# Disable password-based authentication, it can allow for potentially easier brute-force attacks.
107-
PasswordAuthentication <%= @node['ssh']['password_authentication'] %>
107+
PasswordAuthentication <%= ((@node['ssh']['password_authentication']) ? "yes" : "no" ) %>
108108
PermitEmptyPasswords no
109109
ChallengeResponseAuthentication no
110110

0 commit comments

Comments
 (0)