fix ssh related tests

As letting sshd active will mess with others scripts later
This commit is contained in:
damien cavagnini
2025-08-05 15:09:10 +02:00
parent f0075600e1
commit d587fc3e97
25 changed files with 50 additions and 0 deletions

View File

@@ -19,4 +19,6 @@ test_audit() {
register_test retvalshouldbe 0
register_test contain "[ OK ] ^IgnoreRhosts[[:space:]]*yes is present in /etc/ssh/sshd_config"
run resolved "${CIS_CHECKS_DIR}/${script}.sh" --audit-all
describe Clean test
pkill -9 sshd
}