From 232419df8c0c4d9dee887a119d9fb11d14b17ee3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Boraty=C5=84ski?= Date: Tue, 22 Mar 2016 23:54:38 +0100 Subject: [PATCH] Modified SSH service checking. --- include/tests_ssh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/tests_ssh b/include/tests_ssh index 15948550..72c5732a 100644 --- a/include/tests_ssh +++ b/include/tests_ssh @@ -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