Test connection with the telnet command