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
non-root sudo useror 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:
[firstname.lastname@example.org ~]# telnet 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:
[email@example.com ~]# telnet google.com 443 Trying 188.8.131.52... 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.