How to Setup Telnet On CentOS 8 / RHEL 8

RHEL 8 Logo

This tutorial will be helpful for beginners to install and configure telnet on CentOS 8 and Redhat enterprise Linux 8 systems

Telnet allows users to log on to remote systems and run programs on that system and the disadvantages of using this protocol due to in-secure.

Installation Steps

Step 1: Install telnet packages

Check for the telnet package preinstalled or install the packages

telnet package for rhel8 / centos8

dnf install telnet telnet-server

Step 2: Add telnet service to Firewalld

Telnet communicates via port 23 and needs to be allowed in the inbuilt firewalld

firewall-cmd –add-service=telnet –zone=public

Execute the command once again with “-permanent” flag to be persistent across firewalld restarts

firewall-cmd –add-service=telnet –zone=public — permanent

Add telnet service to firewalld

Step 3: Add telnet service to SELinux

If SELinux is enabled, add the below command, else skip this step

semanage port -a -t telnetd_port_t -p tcp

Step 4: Start the telnet service

Start telnet service and enable it across reboots

systemctl start telnet.socket

systemctl enable telnet.socket

telnet service

Step 5: Verify the process is running

25

Leave a Reply

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

Secured By miniOrange