This article from Http://futeng.iteye.com/blog/2039490?utm_source=tuicool&utm_medium=referral, after my experiment, more reliable.
The article added to my own in the use of the problems encountered and how to solve. Thanks to the original author, this problem has been troubling for a long time.
Thinking:
1. Detect Linux under the Telnet service does not exist.
2. The existence is open, does not exist installs. steps: 1. Use Telnet to remotely connect to the target host (this example uses Xshell) Shell code xshell:\> telnet 192.168.80.218 connecting to 192.1 68.80.218:23 ... could not connect to ' 192.168.80.218 ' (port): Connection failed. Type ' help ' to the learn how-to-use Xshell prompt. Connection Failed
2. Login target host detect Telnet service is normal: telnet localhost
Shell code [oracle@localhost ~]$ telnet localhost-bash:telnet:command not found
command does not exist, it can be understood that the service is not installed.
3. The next step is not to install immediately, but to first detect which Telnet-related software is installed in the machine. More to delete, less to fill and so on.
The shell code attempts to google:linux keywords such as telent services.
Discover by Search Telnet by: Shell Code telnet-client:telnet client Telnet-server:telnet Server xinetd: network servers Super Daemon
It is generally understood that most hairstyle versions of Linux have Telnet-client installed by default, while Telnet-server requires additional installation by the user.
XINETD is a super daemon for Linux systems, which is stored in the background for a long time and listens for requests from the network to start the corresponding service. And Telnet is one of the services of XINETD jurisdiction.
4. Query if there is a Telnet-related RPM installation package: Rpm-qa | grep telnet
Shell code [root@localhost ~]# Rpm-qa | grep telnet telnet-0.17-47.el6.x86_64 [root@localhost ~]#
Telnet-0.17-47.el6.x86_64 is the client that is installed by default. It is clear that the system does not install Telnet-server by default.
5. Install Telnet-server service with Yum
The Yum method is the most convenient online package installation tool.
The installation method can search for keywords directly, similar to:
Google:yum Telnet
Shell code [root@crxjtest xinetd.d]# yum list |grep telnet ... Trying other mirror. telnet.x86_64 1:0.17-47.el6 @anaconda-REDHATENTERPRISELINUX-201111171049.X86_64/6 .2 telnet-server.x86_64 1:0.17-47.el6 Local
Found telnet-server.x86_64 this source shell code [root@crxjtest xinetd.d]# yum install telnet-server.x86_64-y ... trying other mirror. Setting up install process resolving dependencies --> running transaction check ---> package telnet-server.x86_64 1:0.17-47.el6 will be installed --> processing dependency: xinetd for package: 1: telnet-server-0.17-47.el6.x86_64 --> running transaction check ---> Package xinetd.x86_64 2:2.3.14-33.el6 will be installed --> finished dependency resolution ... & nbsp complete! [ROOT@CRXJTEST XINETD.D]#&Nbsp;
The installation was successful.
You can search again to see if you have written to the environment. Shell code [root@crxjtest xinetd.d]# Rpm-qa | grep telnet telnet-0.17-47.el6.x86_64 telnet-server-0.17-47.el6.x86_64
Discovery Telnet-server has been installed successfully.
PS: You can also
[Root@localhost xinetd.d]# yum list|grep telnet
telnet-server.x86_64 1:0.17-60.el7 @base
telnet.x86_64 1:0.17-60.el7