Skip to content

Commit

Permalink
Merge pull request #234 from ankitkasera1/master
Browse files Browse the repository at this point in the history
Adding attribute for max_startups value to custom from parent cookbooks
  • Loading branch information
schurzi authored May 17, 2024
2 parents f425e49 + 0769a28 commit a554623
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
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
server['login_grace_time'] = '30s'
server['max_auth_tries'] = 2
server['max_sessions'] = 10
server['max_startups'] = '10:30:100'
server['password_authentication'] = false
server['log_level'] = 'verbose'
server['accept_env'] = ['LANG', 'LC_*', 'LANGUAGE']
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 @@ -95,7 +95,7 @@ PermitUserEnvironment no
LoginGraceTime <%= @node['ssh-hardening']['ssh']['server']['login_grace_time'] %>
MaxAuthTries <%= @node['ssh-hardening']['ssh']['server']['max_auth_tries'] %>
MaxSessions <%= @node['ssh-hardening']['ssh']['server']['max_sessions'] %>
MaxStartups 10:30:100
MaxStartups <%= @node['ssh-hardening']['ssh']['server']['max_startups'] %>

# Enable public key authentication
PubkeyAuthentication yes
Expand Down

0 comments on commit a554623

Please sign in to comment.