{{{ oval_metadata("The SSH ClientAliveCountMax should be set to an appropriate value (and dependencies are met)") }}} {{% if product in ['opensuse', 'sle12','sle15'] %}} {{% else %}} {{% endif %}} {{% if product in ['opensuse', 'sle12','sle15'] %}} {{% else %}} {{% endif %}} {{%- if sshd_distributed_config == "true" %}} {{%- endif %}}
/etc/ssh/sshd_config
^[ \t]*(?i)ClientAliveCountMax(?-i)[ \t]+(.+?)[ \t]*(?:$|#)
1

{{%- if sshd_distributed_config == "true" %}}

/etc/ssh/sshd_config.d
.*\.conf$
^[ \t]*(?i)ClientAliveCountMax(?-i)[ \t]+(.+?)[ \t]*(?:$|#)
1
{{%- endif %}}