diff --git a/templates/sshd_config_block.j2 b/templates/sshd_config_block.j2 index 49e14259..28c6fd9f 100644 --- a/templates/sshd_config_block.j2 +++ b/templates/sshd_config_block.j2 @@ -22,7 +22,7 @@ ClientAliveCountMax {{ security_sshd_client_alive_count_max }} # V-72245 PrintLastLog yes {% endif %} -{% if security_sshd_permit_root_login | bool %} +{% if not (security_sshd_permit_root_login | bool) %} # V-72247 PermitRootLogin no {% endif %}