How to exit telnet in CentOS

Source: Internet
Author: User
When debugging a network program, a problem occurs. when the service is started, the client cannot connect. First, you can use telnet to connect to the client. the command is the same as that in Windows, telnetIP port number [plain] viewplaincopy # telnet &

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.

 

[Plain]View plain copy
  1. # Telnet to 192.168.0.107 1111
[Plain]View plain copy
  1. Trying 192.168.0.107...
  2. 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,

 

[Plain]View plain copy
  1. Trying 192.168.1.107...
  2. Connected to 192.168.1.107.
  3. 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:

 

[Plain]View plain copy
  1. Escape character is '^]'.
Ctrl +]

 

The posture is correct;

 

[Plain]View plain copy
  1. Telnet>?
  2. Commands may be abbreviated. Commands are:
  3. Close current connection
  4. Logout forcibly logout remote user and close the connection
  5. Display operating parameters
  6. Mode try to enter line or character mode ('mode? 'For more)
  7. Open connect to a site
  8. Quit exit telnet
  9. Send transmit special characters ('send? 'For more)
  10. Set operating parameters ('set? 'For more)
  11. Unset operating parameters ('unset? 'For more)
  12. Status print status information
  13. Toggle operating parameters ('toggle? 'For more)
  14. Slc change state of special charaters ('slc? 'For more)
  15. Z suspend telnet
  16. ! Invoke a subshell
  17. Environ change environment variables ('environ? 'For more)
  18. ? Print help information
  19. Telnet> close
  20. Connection closed.
Enter a question mark and press enter to view help;

 

Enter close or quit and press enter to exit telnet;

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.