How To Install Telnet on CentOS 8

Install Telnet on CentOS 8

In this tutorial, we will show you how to install the Telnet on CentOS 8. For those of you who didn’t know, Telnet is the application layer protocol that provides bidirectional interactive text-based communication. It works in Server / Client mode where the Telnet Server application is installed in the main computer and all other computers connect with it using the Telnet client application. By default, telnet won’t be installed in your System.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you through the step-by-step installation of the Telnet on a CentOS 8.


  • A server running one of the following operating systems: CentOS 8.
  • It’s recommended that you use a fresh OS install to prevent any potential issues
  • A non-root sudo user or access to the root user. We recommend acting as a non-root sudo user, however, you can harm your system if you’re not careful when acting as the root.

Install Telnet on CentOS 8

Step 1. First, let’s start by ensuring your system is up-to-date.

sudo dnf update
sudo dnf install epel-release

Step 2. Installing Telnet on CentOS 8.

Now we run the following command to install telnet on the CentOS system:

sudo dnf install telnet

Step 3. Configure Firewalld.

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

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

Step 4. Use Telnet.

Now, you can run telnet:

[root@idroot.us ~]# telnet

Now you can use telnet command to test the port connectivity with the remote server. In the below example, we are using telnet the command to check google.com port 443 connectivity by running telnet google.com 443 command:

[root@idroot.us ~]# telnet google.com 443
Connected to google.com.

Congratulations! You have successfully installed Telnet. Thanks for using this tutorial for installing the Telnet on your CentOS 8 system. For additional help or useful information, we recommend you check the official CentOS website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!
Back to top button