For the Telnet service, this convenient protocol allows us to remotely log on and manipulate hosts and other programs. Then we usually look for methods to enable this protocol service early on different devices. Next, we will introduce the startup instructions in Linux.
1. Install the telnet package (usually two)
1. telnet-client (or telnet). This package provides the telnet client program;
2. telnet-server. This package provides telnet server programs;
Check whether these software packages are installed before installation. The method is as follows:
- [Root @ wljs root] # rpm? Cq telnet or [root @ wljs root] # rpm? Cq telnet-client
- [Root @ wljs root] # rpm? Cq telnet-server
If no software package is detected, install it. By default, the telnet software package is installed in red hat linux 9. Generally, you only need to install the telnet-server software package.
1. Get the telnet-server-0.17-25.i386.rpm package from the installation disk of red hat linux 9.
2. install the software package
- [root@wljs root]#rpm ?Ci telnet-server-0.17-25.i386.rpm
Ii. Start the telnet Service
1. Start the service
Method 1: Use ntsysv to add * Before telnet in the displayed window, and then press OK.
Method 2: edit/etc/xinetd. d/telnet
- [root@wljs root]# vi /etc/xinetd.d/telnet
Find disable = yes and change yes to no.
2. Activate the service
- [root@wljs root]# service xinetd restart
Iii. Test services
- [Root @ wljs root] # telnet ip (or hostname)
If the configuration is correct, the system prompts you to enter the user name and password of the remote machine.
Login:
Password:
Note: Only common users are allowed by default.
4. Set the telnet service port
- #vi /etc/services