Tuesday, March 31, 2015

How to Install telnet in RHEL6/CentOS6 and RHEL7/CentOS7



What is telnet?


Telnet is a user command and an underlying TCP/IP protocol for accessing remote computers. Through Telnet, an administrator or another user can access someone else's computer remotely. On the Web, HTTP and FTP protocols allow you to request specific files from remote computers, but not to actually be logged on as a user of that computer. With Telnet, you log on as a regular user with whatever privileges you may have been granted to the specific application and data on that computer.

How to install telnet?


If you use fresh OS installation (not a full installation), you cannot access telnet command in your machine,
[akila@localhost u01]# telnet
bash: telnet: command not found...

so you have to install telnet in your machine,
if you have internet connection to your machine, type below command in the terminal, then it will install telnet in your machine,
[akila@localhost u01]# yum install telnet

If you don’t have internet connection to your machine, best way to install telnet is by using telnet rpm file.
Download telnet-0.17-48.<linux version>.x86_64.rpm and then go to the file location by using terminal.
Then type below command,
[akila@localhost rpmFiles]# rpm -ivh telnet-0.17-48.<linux version>.x86_64.rpm
warning: telnet-0.17-48.<>.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID xxxxxx: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:telnet-1:0.17-48.el6             ################################# [100%]

It will install telnet properly.

How to check telnet installed correctly


Simply type below command and you will get the connected result if telnet installed successfully,

[akila@localhost rpmFiles]# telnet localhost 22
Trying ::1...
Connected to localhost.
Escape character is '^]'.
SSH-2.0-OpenSSH_6.4

No comments:

Post a Comment