toolkit/func/core/pkg_telnet/10-test-telnet.sh
2021-07-04 23:50:25 -07:00

9 lines
182 B
Bash
Executable File

#!/bin/bash
r_log "telnet" "Basic telnet test"
telnet_sshd_test=`telnet 127.0.0.1 22 << EOF
EOF`
echo "$telnet_sshd_test" | grep -q "Escape character is '^]'"
r_checkExitStatus $?