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:
- telnet: ?
- Commands may be abbreviated, Command are:
- open connect to a site
- closeclose currect connection
- quit exit telnet
- displaydisplay operating parameters
- send transmit special characters ('send ?' for more)
- setset operating parameters('set ?' for more)
- status print status information
- toggle toggle operating parameters('toggle ?' for more)
- mode try to enter line-by-line or character-at-a-time mode
- ? 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.