2021-07-05 06:50:25 +00:00
|
|
|
#!/bin/bash
|
|
|
|
r_log "telnet" "Basic telnet test"
|
|
|
|
|
2021-07-06 20:16:01 +00:00
|
|
|
telnet_sshd_test=$(telnet 127.0.0.1 22 << EOF
|
|
|
|
EOF
|
|
|
|
)
|
2021-07-05 06:50:25 +00:00
|
|
|
echo "$telnet_sshd_test" | grep -q "Escape character is '^]'"
|
|
|
|
r_checkExitStatus $?
|