How to Install telnet on CentOS

Question : When i try to perform the troubleshooting using telnet command, the following error appeared. How to fix this ?

[root@centos62 ~]# telnet localhost 25
-bash: telnet: command not found

Answer : Simply install telnet using this command :

[root@centos62 ~]# yum install telnet
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.ipserverone.com
 * epel: ftp.cuhk.edu.hk
 * extras: centos.ipserverone.com
 * rpmforge: ftp-stud.fht-esslingen.de
 * updates: centos.ipserverone.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package telnet.i686 1:0.17-47.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================
 Package         Arch          Version                Repository                     Size
==========================================================================================
Installing:
 telnet          i686          1:0.17-47.el6          CentOS6.2-Repository           56 k

Transaction Summary
==========================================================================================
Install       1 Package(s)

Total download size: 56 k
Installed size: 102 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : 1:telnet-0.17-47.el6.i686                                              1/1

Installed:
  telnet.i686 1:0.17-47.el6

Complete!
Leave a Reply

Your email address will not be published. Required fields are marked *

SiteGround.com

A world leading hosting company that provides fully-managed innovative and secure solutions, suitable for hosting small to medium-sized websites

Built on the best available technologies combined with Google Cloud for strong redundancy and application availability. Backed by skilled experts to address web security threats, a devops team to create advanced custom security solutions, and 24/7 sysadmins to watch over the platform. This powerful, hands-on approach makes your sites faster, safer, and easier to manage. Starting from only $3.95/mo.

TRY FREE

* up to 30 days money back guarantee