check_sshpermitrootno: Always specify lport #152

Merged
abenmiloud merged 1 commit from sshpermitrootno_multiport into master 2023-12-01 09:45:09 +01:00

1 commit

Author SHA1 Message Date
Alexis Ben Miloud--Josselin ace7a76d90 check_sshpermitrootno: Always specify lport
When sshd listens two ports (usually 22 and another one), the sshd
-T command will fail if lport is not specified.

This commit also simplifies the if-elif block.
2023-11-29 17:44:06 +01:00