1. Basic Knowledge:
Linux provides services by running Daemon on the background. The daemon is used to open a Port and wait for the connection to enter. In C/S mode, if the customer requests a connection, the daemon creates a (Fork) sub-process to respond to the connection, and the parent process continues to listen to requests from other services. However, if every service provided by the system must run a daemon listening for a port connection, it usually means a waste of system resources. To this end, the "extended network Daemon service program" xinetd (Xinetd Internet Daemon) is introduced ). The Telnet service is also protected by xinetd.
2. Steps for enabling:
Step 1: Check whether the rpm package for telnet and telnet-server is installed. If not, install the package:
> Linux :~ /Desktop # rpm-qa telnet
> Telnet-1.2-134.22
Indicates that the telnet package has been installed (normally, the relnet package is automatically installed when the system is installed)
> Linux :~ /Desktop # rpm-qa telnet-server
>
Indicates no installation. You need to download the telnet-server *. i386.rpm package for installation.
> Rpm-ivh telnet-server *. i386.rpm
Step 2: Modify the telnet configuration file and set the disable attribute in the telnet file to no.
> Linux :~ /Desktop # vi/etc/xinetd. d // telnet
Service telnet
{
Socket_type = stream
Protocol = tcp
Wait = no
User = root
Server =/usr/sbin/in. telnetd
Disable = no
}
Step 3: restart the xinetd daemon:
> Linux :~ /Desktop # service xinetd restart
Step 4: Enable the telnet service:
> Linux :~ /Desktop # chkconfig telnet on
> Linux :~ /Desktop # chkconfig xinetd on
End
Recommended reading:
Enable Telnet in CentOS 6.3
RedHat 6.2 install the Telnet Service
Install and start Telnet in SUSE Linux
Virtual Machine RedHat communication and enabling Telnet login
How to Set Up Telnet, openSSH, and VNC remote servers in Linux