Install telnet on CentOS (online and rpm packages)
When you execute telnet, the system prompts that the command does not exist. Enter the command rpm-qa telnet-server. If no output content exists, the command is not installed.
1. Online Installation
Run the following two commands:
Yum install telnet
Yum install telnet-server
2. rpm package installation
Download the corresponding rpm package:
Http://vault.centos.org/6.3/ OS /x86_64/Packages/ 6.3 indicates the System Version Number
Telnet-server-0.17-48.el6.x86_64.rpm
Telnet-0.17-48.el6.x86_64.rpm
Run the following command:
Rpm-ivh telnet-0.17-48.el6.x86_64.rpm
Rpm-ivh telnet-server-0.17-48.el6.x86_64.rpm
The following warning may occur when executing the rpm-ivh telnet-server-0.17-48.el6.x86_64.rpm command:
Warning: telnet-server-0.17-48.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Error: Failed dependencies:
Xinetd is needed by telnet-server-1: 0.17-48. el6.x86 _ 64
The solution is to first install the xinetd package (as shown above)
Run the following command:
Rpm-ivh xinetd-2.3.14-39.el6_4.x86_64.rpm
Install telnet-server
Then start xinetd:
Service xinetd start has been installed.