We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 43326a2 + 8d9ad45 commit 5ec76f4Copy full SHA for 5ec76f4
attributes/default.rb
@@ -47,3 +47,4 @@
47
default['ssh']['allow_root_with_key'] = false # sshd
48
default['ssh']['allow_tcp_forwarding'] = false # sshd
49
default['ssh']['allow_agent_forwarding'] = false # sshd
50
+default['ssh']['use_pam'] = false # sshd
templates/default/opensshd.conf.erb
@@ -102,8 +102,9 @@ IgnoreUserKnownHosts yes
102
RhostsRSAAuthentication no
103
HostbasedAuthentication no
104
105
+# Enable PAM to enforce system wide rules
106
+UsePAM <%= ((@node['ssh']['use_pam']) ? "yes" : "no" ) %>
107
# Disable password-based authentication, it can allow for potentially easier brute-force attacks.
-UsePAM no
108
PasswordAuthentication no
109
PermitEmptyPasswords no
110
ChallengeResponseAuthentication no
0 commit comments