Installing and Configure Telnet Client and Telnet Server on RHEL

How to Install Telnet on RHEL

There are two binaries we need to install, one is client and another is server as given below.
 

[root@localhost ]# rpm -qa | grep telnet
telnet-0.17-73.el8.ppc64le
telnet-server-0.17-73.el8.ppc64le
[root@localhost ]# 

telnet-0.17-73.el8.ppc64le is a telnet client rpm package and telnet-server-0.17-73.el8.ppc64le is a telnet server package for ppc64 Little Endian for x86 version it will be ending with x86_64.

Install Telnet Packages

# yes | yum install telnet telnet-server

Installed:

  telnet-1:0.17-73.el8.ppc64le
  telnet-server-1:0.17-73.el8.ppc64le         

Complete!
 

Configuring Telnet Server

After successful installation if you try to telnet the machine you will notice the below error

# telnet localhost
Trying 127.0.0.1...
telnet: connect to address localhost: No route to host

Configure the Firewall and Restart the Telnet Server

Add the service into the firewall for accepting the request from the outside client and start the telnet.socket service.

[root@localhost ~]# firewall-cmd --add-service=telnet --zone=public --permanent
success
[root@localhost ~]# systemctl start telnet.socket
[root@localhost ~]# 

Telnet Status Check

Check the status of telnet using below command 

[root@localhost ~]#  systemctl status telnet.socket
telnet.socket - Telnet Server Activation Socket
   Loaded: loaded (/usr/lib/systemd/system/telnet.socket; enabled; vendor preset: disabled)
   Active: active (listening) since Mon 2020-03-28 04:18:22 CDT; 3s ago
     Docs: man:telnetd(8)
   Listen: [::]:23 (Stream)
 Accepted: 1; Connected: 1;
   CGroup: /system.slice/telnet.socket

Mar 28 04:18:22 localhost systemd[1]: Listening on Telnet Server Activation Socket.
[root@localhost ~]#




Post a Comment

0 Comments