[Solved] Telnet Error: Connection closed by foreign host

Execute command:

telnet smtp.exmail.qq.com 465

Information appears:

[[email protected] Desktop]# telnet 7027


Connected to (  // indicates a successful connection

Escape character is '^]' // Not an error, the ^ in "^]" means ctrl key, which means press Ctrl and ] keys at the same time to enter the command mode of telnet client.

Connection closed by foreign host. // If there is no other command data input for a long time, linux will automatically close the corresponding connection.

Similar Posts: