Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow login grace time to be configurable #132

Merged
merged 1 commit into from
Nov 15, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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