Detailed introduction to the use of Linux telnet commands

Source: Internet
Author: User
Tags ftp commands

For remote logon to Linux systems, the Linux telnet command must be mastered. Although telnet is not the only remote logon solution, it is undeniable that it is the most commonly used one, therefore, it is necessary to have a detailed understanding of the Linux telnet command. Here we will introduce it.

Use the telnet command to log on remotely. This command allows you to use the telnet protocol to communicate between remote computers. you can log on to a remote computer over the network, just as you log on to a local machine and execute commands.

To log on to the remote computer through telnet, you must know the valid user name and password on the remote computer. Although some systems do provide the logon function for remote users, the Operation permissions of guests must be restricted for security reasons. Therefore, in this case, few functions can be used. When remote users are allowed to log on, the system usually places these users in a restricted shell to prevent the system from being maliciously or accidentally damaged.
You can also use telnet to log on from a remote site to your computer, check emails, edit files, and run programs, just like logging on locally. However, you can only use the terminal-based environment instead of the X Wndows environment. telnet only provides terminal Simulation for common terminals, but does not support X Wndow and other graphical environments.

Telnet commands are generally used as follows:

Telnet host name/IP Address

The "host name/IP Address" is the host name or IP address of the remote machine to be connected. If the command is successfully executed, the login: prompt will be obtained from the remote machine.

The logon process using the telnet command is as follows:

$ Telnet host name/IP Address

Start the telnet session.

Once telnet is successfully connected to the remote system, the logon information is displayed and the user's username and password are prompted. If the username and password are entered correctly, you can successfully log on and work on the remote system.

You can enter many commands at the end of the telnet prompt to control the telnet session process. These commands are described in detail in the telnet online help manual.

The following is an example of a telnet session on a Linux computer:

 
 
  1. $ telnet server. somewhere. com  
  2.  
  3. Trying 127.0.0.1…  
  4.  
  5. Connected to serve. somewhere. com.  
  6.  
  7. Escape character is '?]'.  
  8.  
  9. “TurboLinux release 4. 0 Colgate)  
  10.  
  11. kernel 2.0.18 on an I486   
  12.  
  13. login: bubba  
  14.  
  15. password:   
  16.  
  17. Last login:Mon Nov l5 20:50:43 for localhost  
  18.  
  19. Linux 2. 0.6. Posix).  
  20.  
  21. server: ~$  
  22.  
  23. server: ~$ logout  
  24.  
  25. Connection closed by foreign host  
  26.  

After the user finishes the remote session, make sure to use the logout command to exit the remote system. Telnet then reports that the remote session is disabled and returns to the Shell prompt of the user's local machine. This completes the Linux telnet command operations.

  1. Detailed usage of Linux ftp commands
  2. Linux dynamic library and static library
  3. Set ip and mac binding in Linux route
  4. The top 10 Linux versions in China are described in detail)
  5. Reasons for choosing the path to Linux Authentication

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.