mirror of
https://github.com/CISOfy/lynis.git
synced 2026-03-11 08:55:28 +00:00
Modified SSH service checking.
This commit is contained in:
parent
3e5555fb12
commit
232419df8c
1 changed files with 2 additions and 1 deletions
|
|
@ -39,7 +39,8 @@
|
|||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
LogText "Test: Searching for a SSH daemon"
|
||||
IsRunning sshd
|
||||
if [ ${RUNNING} -eq 1 ]; then
|
||||
IsTcpUdpListening "TCP" 22
|
||||
if [ ${RUNNING} -eq 1 ] || [ ${LISTENING} -eq 1 ]; then
|
||||
SSH_DAEMON_RUNNING=1
|
||||
Display --indent 2 --text "- Checking running SSH daemon" --result FOUND --color GREEN
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue