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:
- $ telnet server. somewhere. com
-
- Trying 127.0.0.1…
-
- Connected to serve. somewhere. com.
-
- Escape character is '?]'.
-
- “TurboLinux release 4. 0 Colgate)
-
- kernel 2.0.18 on an I486
-
- login: bubba
-
- password:
-
- Last login:Mon Nov l5 20:50:43 for localhost
-
- Linux 2. 0.6. Posix).
-
- server: ~$
-
- server: ~$ logout
-
- Connection closed by foreign host
-
- $
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.
- Detailed usage of Linux ftp commands
- Linux dynamic library and static library
- Set ip and mac binding in Linux route
- The top 10 Linux versions in China are described in detail)
- Reasons for choosing the path to Linux Authentication