Introduction to telnet server setting commands (1)

Source: Internet
Author: User
Tags telnet program

The telnet server is the core server for remote logon and other related settings. Some operations on this server will be described in this article. The Code contains a lot of details and is expected to be useful to everyone. In addition to the example of how telnet works, telnet has many features. telnet can send any character except "quot; escape" quot; to the remote host. because the "quot; escape" quot; character is a special command mode of the client in telnet, its default value is "quot; Ctrl-]" quot ;. do not confuse it with the Esc key on the keyboard. You can set "quot; escape" quot; to any character, for telnet, the character cannot be transferred to a remote host, and the Esc key is a non-printable character. telnet uses it to delete commands in the remote system. remember that the "quot; escape" quot; character is not always expressed as "quot; Ctrl-]" quot.

You can simply type telnet without the machine words. In this case, telnet "gt; is displayed. This indicates that the telnet server is waiting for the command to be typed. For example, enter the question mark" quot ;? "Quot; then a useful command table is obtained:

 
 
  1. telnet: ?  
  2. Commands may be abbreviated, Command are:  
  3. open connect to a site  
  4. closeclose currect connection  
  5. quit exit telnet  
  6. displaydisplay operating parameters  
  7. send transmit special characters ('send ?' for more)  
  8. setset operating parameters('set ?' for more)  
  9. status print status information  
  10. toggle toggle operating parameters('toggle ?' for more)  
  11. mode try to enter line-by-line or character-at-a-time mode  
  12. ?  print help information 

Although there are many commands and even sub-commands, only some of them are commonly used. Here are some of the following:

Close:

This command terminates the connection. it can automatically disconnect from the remote system, or use it to exit telnet. This command can be used if you want to quit when you enter a network host.

Open:

It is used to connect to a named machine, and the name or IP address of the target machine must be given. if no machine name is provided, the telnet server selects a machine name. note that you should first use "quot; close" quot; to close any existing connection before using the "quot; Open" quot; command.

Set ECHO:

The local response is On or Off. whether to display the output content on the screen. basically the same as dos echo. if the machine is in echo on and you want to change it to OFF, You can input set echo and change it back to echo off. Then you can type set echo. (This is short. If you have any questions, contact me)

Set escape char:

Create a "quot; escape" quot; character to a special symbol. To use a control symbol, use "quot; asis" quot; or enter the symbol "quot; ^ "quot; Add the letter B (for example, ^ B ). during normal operation, the character "quot; escape" quot; is not required, and the character used as "quot; escape" quot; should not be used again. this is similar to setting the true meaning of each key on the keyboard in many programs. however, if you are running a daisy-chained application system, you can re-determine the features of the "quot; escape" quot; character. for example, use telnet from system A to system B, and then use telnet to register and enter system C. if a fault occurs while working on system C, when "quot; escape" quot; indicates that the operator is the same, the connection between system B and system C cannot be interrupted. type "quot; escape" quot; symbol, which will always be in the command mode of system. if you use a different "quot; escape" quot; symbol in each telnet part, you can select one of the command modes by typing the appropriate symbol, this can also be used for terminal simulation in other applications ).

Quit:

Use it to smoothly launch the telnet program.

Z:

Retain telnet, but temporarily return to the local system to execute other commands. connections and other options on the telnet server will be retained when telnet is restored.


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.