Puppet Class: almalinux_hardening::services::ssh::alive_max
- Defined in:
- manifests/services/ssh/alive_max.pp
Summary
Set SSH Client Alive Count MaxOverview
Puppet Module to perform AlmaLinux 8 OS Hardening with CIS benchmark. Copyright © 2022 Jonas Hügli
24 25 26 27 28 29 30 31 32 33 34 |
# File 'manifests/services/ssh/alive_max.pp', line 24
class almalinux_hardening::services::ssh::alive_max inherits almalinux_hardening::services::ssh::service {
if $almalinux_hardening::enable_ssh_alive_max {
file_line { 'ssh_alive_max':
ensure => 'present',
path => '/etc/ssh/sshd_config',
line => "ClientAliveCountMax ${almalinux_hardening::ssh_alive_max}",
match => '^(#|).*ClientAliveCountMax.*.[0-9]*.*$',
}
~> Service['sshd']
}
}
|