mirror of
https://github.com/CISOfy/lynis.git
synced 2025-04-08 17:15:25 +02:00
Match sshd process running and/or port 22 listening
This commit is contained in:
parent
251b861df5
commit
4d52e64b2a
@ -39,8 +39,7 @@
|
||||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
LogText "Test: Searching for a SSH daemon"
|
||||
IsRunning sshd
|
||||
IsTcpUdpListening "TCP" 22
|
||||
if [ ${RUNNING} -eq 1 ] || [ ${LISTENING} -eq 1 ]; then
|
||||
if [ ${RUNNING} -eq 1 ] || PortIsListening "TCP" 22; then
|
||||
SSH_DAEMON_RUNNING=1
|
||||
Display --indent 2 --text "- Checking running SSH daemon" --result FOUND --color GREEN
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user