The Telnet protocol can help us complete the remote login process. We also have some knowledge about the concepts and basics of this part. We have also explained some of its commands and other issues. The following describes how to configure the Telnet service.
Telnet service configuration 1: Install the telnet software package (usually two ).
1. telnet-client (or telnet). This package provides the telnet client program.
2. It is the telnet-server software package. This is the real Telnet server software package.
Check whether these software packages are installed before installation. The method is as follows:
- [root@wljs root]#rpm –q telnet
- [root@wljs root]#rpm –q telnet-client
- [root@wljs root]#rpm –q telnet-server
If no software package is detected, install it. By default, the client software package has been installed in red hat linux 9. Generally, you only need to install the telnet-server software package:
1. download the software package from my ftp.
In the virtual console, enter:
- [root@wljs root]#ftp 210.45.160.27
- Name:ftp
- Password:ftp
- ftp>cd linux
- ftp>ls
- ftp>get telnet-0.17-25.i386.rpm
- ftp>get telnet-server-0.17-25.i386.rpm
- ftp>bye
2. install the software package
- #rpm –i telnet-0.17-25.i386.rpm
- #rpm –i telnet-server-0.17-25.i386.rpm
Telnet service configuration 2: Start the telnet Service
1. Start the service
Method 1: Use ntsysv. In the displayed window, select telnet and press OK.
Method 2: edit/etc/xinetd. d/telnet
- #vi /etc/xinetd.d/telnet
-
- [root@test root]# vi /etc/xinetd.d/telnet
If you find disable = yes <=, you just need to change "yes" to "no! The service is disabled by default.
2. Activate the service
Telnet is stored under xinetd. Therefore, as long as xinetd is re-activated, the settings in xinetd can be re-read. Therefore, the configured telnet can be activated.
- [root@wljs root]# service xinetd restart
Telnet service configuration 3: Test Service
- [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.