Skip to content

Commit

Permalink
Merge 1a07d1e into 5d58452
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-sidorenko committed Nov 8, 2016
2 parents 5d58452 + 1a07d1e commit 4c1c408
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions attributes/default.rb
Expand Up @@ -78,6 +78,7 @@
default['ssh']['use_dns'] = nil # sshd
# set this to nil to let us detect the attribute based on the node platform
default['ssh']['use_privilege_separation'] = nil
default['ssh']['login_grace_time'] = '30s' # sshd
default['ssh']['max_auth_tries'] = 2 # sshd
default['ssh']['max_sessions'] = 10 # sshd
default['ssh']['client']['password_authentication'] = false # ssh
Expand Down
2 changes: 1 addition & 1 deletion templates/default/opensshd.conf.erb
Expand Up @@ -88,7 +88,7 @@ KexAlgorithms <%= @kex %>
UseLogin no
UsePrivilegeSeparation <%= @use_priv_sep %>
PermitUserEnvironment no
LoginGraceTime 30s
LoginGraceTime <%= @node['ssh']['login_grace_time'] %>
MaxAuthTries <%= @node['ssh']['max_auth_tries'] %>
MaxSessions <%= @node['ssh']['max_sessions'] %>
MaxStartups 10:30:100
Expand Down

0 comments on commit 4c1c408

Please sign in to comment.