The user uses the Telnet command to log on remotely. command allows users to use the Telnet protocol to communicate between remote computers, and users can log on to a remote computer over a network, as if they were logged on to a local machine to execute a command. In order to log on to a remote computer by Telnet, you must know the legal user name and password on the remote machine. Although some systems do provide logon capabilities for remote users, the ability to restrict guest operations is limited for security reasons, so there are few features that can be used in this case, and when remote users are allowed to log on, the system usually places these users in a restricted shell. In case the system is compromised by a malicious or careless user. Users can also use Telnet to log on to their computers from remote sites, check e-mail, edit files, and run programs as if they were logged on locally. However, users can only use a terminal-based environment rather than an X-wndows environment, and Telnet only provides terminal emulation for the common terminal, and does not support graphics environments such as X Wndow.
The general form of the Telnet command is:
Telnet host name/IP
WHERE "hostname/IP" is the host name or IP address of the remote machine to which you want to connect. If this command succeeds, the login: prompt will be obtained from the remote machine.
The procedure for logging in using the Telnet command is as follows:
$ telnet host name/IP
Once Telnet is successfully connected to the remote system, the login information is displayed and the user is prompted to lose the user name and password. If the username and password are entered correctly, you can log on successfully and work on the remote system.
You can enter many commands after the Telnet prompt to control the Telnet session process, which is described in detail in the Telnet online Help manual.
Example:
# telnet 192.168.1.66
Trying 192.168.1.66 ...
Connected to 192.168.1.66.
Escape character is ' ^] '.
Red Hat Linux Release 7.3 (Valhalla)
Kernel 2.4.18-3 on a i686
Login:test
Password:
Last Login:mon Feb 9 15:03:56 from 10.153.21.166
[Test@localhost test]$