We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a739063 commit 66e7ebfCopy full SHA for 66e7ebf
attributes/default.rb
@@ -71,3 +71,5 @@
71
default['ssh']['use_dns'] = nil # sshd
72
# set this to nil to let us detect the attribute based on the node platform
73
default['ssh']['use_privilege_separation'] = nil
74
+default['ssh']['max_auth_tries'] = 2 # sshd
75
+default['ssh']['max_sessions'] = 10 # sshd
templates/default/opensshd.conf.erb
@@ -89,8 +89,8 @@ UseLogin no
89
UsePrivilegeSeparation <%= @use_priv_sep %>
90
PermitUserEnvironment no
91
LoginGraceTime 30s
92
-MaxAuthTries 2
93
-MaxSessions 10
+MaxAuthTries <%= @node['ssh']['max_auth_tries'] %>
+MaxSessions <%= @node['ssh']['max_sessions'] %>
94
MaxStartups 10:30:100
95
96
# Enable public key authentication
0 commit comments