Skip to content

Commit

Permalink
Issues #28 addressed thansk to @msachikanta
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Bolwell <[email protected]>
  • Loading branch information
uk-bolly committed Jun 4, 2024
1 parent 15511b3 commit fee167b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ amazon2cis_ssh_loglevel: INFO
# To conform to CIS standards this value nees to be 10 or less
amazon2cis_ssh_maxsessions: 10
amazon2cis_sshd:
# clientalivecountmax: 0
clientalivecountmax: 0
# clientaliveinterval shoudl be between 1 and 900
clientaliveinterval: 300
ciphers: "[email protected],[email protected],[email protected],aes256-ctr,aes192-ctr,aes128-ctr"
Expand Down
2 changes: 1 addition & 1 deletion tasks/section_5/cis_5.3.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@
lineinfile:
path: /etc/ssh/sshd_config
regexp: '^ClientAliveCountMax'
line: "ClientAliveCountMax 0"
line: "ClientAliveCountMax {{ amazon2cis_sshd['clientalivecountmax'] }}"
notify: restart sshd
when:
- amazon2cis_rule_5_3_16
Expand Down

0 comments on commit fee167b

Please sign in to comment.