The telnet-server package has been installed through yum: [root @ localhost ~] # Yumlist | greptelnet \ * Repositoryrhel-debuginfoislistedmorethanonceintheconfigurationThissystemisnotregisteredwithRHN.RHNsupportwill
You can see that the telnet-server package has been installed through yum:
[Root @ localhost ~] # Yum list | grep telnet \*
Repository rhel-debuginfo is listed more than once in the configuration
This system is not registered with RHN.
RHN support will be disabled.
Telnet. i386 1:0. 17-39.el5 installed
Telnet-server.i386 1:0. 17-39.el5 base
However, you cannot use the service command to start the service. Here, telnet is not a standrand along service, but an xinetd service.
Check the/etc/xinetd. d/directory to find the service without telnet. Therefore, check whether the xinetd package is not installed,
[Root @ localhost ~] # Ls/etc/xinetd. d/
Eklogin ekrb5-telnet gssftp klogin krb5-telnet kshell rsync
Next, install telnet-server and find that the xinetd package will be automatically installed-the service that proves to be xinetd again
[Root @ localhost ~] # Yum-y install telnet-server
Loading "security" plugin
Loading "rhnplugin" plugin
Repository rhel-debuginfo is listed more than once in the configuration
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package telnet-server.i386 1:0. 17-39.el5 set to be updated
--> Processing Dependency: xinetd for package: telnet-server
--> Running transaction check
---> Package xinetd. i386. 3.14-10. el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
========================================================== ============================================
Package Arch Version Repository Size
========================================================== ============================================
Installing:
Telnet-server i386 1:0. 17-39.el5 server 35 k
Installing for dependencies:
Xinetd i386. 3.14-10. el5 server 124 k
Transaction Summary
========================================================== ============================================
Install 2 Package (s)
Update 0 Package (s)
Remove 0 Package (s)
Total download size: 159 k
Downloading Packages:
(1/2): xinetd-2.3.14-10.e 100% | =========================| 124 kB
(2/2): telnet-server-0.17 100% | =========================| 35 kB
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: xinetd ######################### [1/2]
Installing: telnet-server ######################## [2/2]
Installed: telnet-server.i386 1:0. 17-39.el5
Dependency Installed: xinetd. i386. 3.14-10. el5
Complete!
Start the xinetd service:
[Root @ localhost ~] # Service xinetd status
Xinetd is stopped
[Root @ localhost ~] # Service xinetd start
Starting xinetd: [OK]
[Root @ localhost ~] # Service xinetd status
Xinetd (pid 7044) is running...
Test shows that telnet is still unavailable:
[Root @ localhost ~] # Telnet localhost
Trying 127.0.0.1...
Telnet: connect to address 127.0.0.1: Connection refused
Telnet: Unable to connect to remote host: Connection refused
[Root @ localhost ~] # Netstat-tanp | grep 23
If no output indicates that telnet is unavailable, trubshooting (troubleshooting)
[[Root @ localhost ~] # Grep disable/etc/xinetd. d/telnet
Disable = yes
[Root @ localhost ~] # Chkconfig telnet on
[[Root @ localhost ~] # Netstat-tanp | grep: 23
[Root @ localhost ~] # Chkconfig telnet on
[Root @ localhost ~] # Netstat-tanp | grep: 23
Tcp 0 0 0.0.0.0: 23 0.0.0.0: * LISTEN 7092/xinetd
[Root @ localhost ~] # Telnet localhost
Trying 127.0.0.1...
Connected to localhost. localdomain (127.0.0.1 ).
Escape character is '^]'.
Red Hat Enterprise Linux Server release 5.2 (Tikanga)
Kernel 2.6.18-92. el5 on an i686
Login: RedHat1
Password:
Last login: Wed Jul 29 04:15:35 from localhost
[Redhat1 @ localhost ~] $ Whoami
Redhat1
OK, all things have done, I'm sure you need a cup of beer !!!!!!!!!!