How to exit telnet in CentOS

Source: Internet
Author: User

How to exit telnet in CentOS

A problem occurs when debugging a network program. when the service is started, the client cannot connect. First, you can use telnet to connect to the client;

The telnet IP port number is the same as that in Windows.

 

# telnet 192.168.0.107 1111
Trying 192.168.0.107...telnet: connect to address 192.168.0.107: Connection timed out
The connection times out. It is estimated that it is a problem with Windows Firewall. My service runs on Windows;

 

Control Panel, system security, Windows Firewall, advanced settings, and new inbound rules;

Execute the telnet command to see if,

 

Trying 192.168.1.107...Connected to 192.168.1.107.Escape character is '^]'.
The connection is successful, which is indeed a firewall problem!

 

 

Ah [é I], what's going on! Unable to return! Ctrl + c, Ctrl + z, ESC, q, quit, exit, none of them work;

Note:

 

Escape character is '^]'.
Ctrl +]

 

The posture is correct;

 

telnet> ?Commands may be abbreviated.  Commands are:close   close current connectionlogout  forcibly logout remote user and close the connectiondisplay display operating parametersmode    try to enter line or character mode ('mode ?' for more)open    connect to a sitequit    exit telnetsend    transmit special characters ('send ?' for more)set     set operating parameters ('set ?' for more)unset   unset operating parameters ('unset ?' for more)status  print status informationtoggle  toggle operating parameters ('toggle ?' for more)slc     change state of special charaters ('slc ?' for more)z       suspend telnet!       invoke a subshellenviron change environment variables ('environ ?' for more)?       print help informationtelnet> closeConnection closed.
Enter a question mark and press enter to view help;

 

Enter close or quit and press enter to exit telnet;


================================ I am a separation line ============================ ============

 

A picture that can make people feel better.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.