diff options
author | mboelen <michael@cisofy.com> | 2016-03-30 14:48:18 +0300 |
---|---|---|
committer | mboelen <michael@cisofy.com> | 2016-03-30 14:48:18 +0300 |
commit | 4d52e64b2afc9dc74776d4afed196c173c910f74 (patch) | |
tree | 929dce222aa162e0a3ba489716833e8fae39159a /include/tests_ssh | |
parent | 251b861df594bc401a1dd6ef0fc0d269d9492949 (diff) |
Match sshd process running and/or port 22 listening
Diffstat (limited to 'include/tests_ssh')
-rw-r--r-- | include/tests_ssh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/tests_ssh b/include/tests_ssh index 72c5732a..73af655b 100644 --- a/include/tests_ssh +++ b/include/tests_ssh @@ -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 |