In this tutorial, we will show you how to install Telnet on Fedora 37. For those of you who didn’t know, Telnet is a protocol that allows a user to remotely access and manage a device or computer over a network using a command-line interface. It is widely supported, and simple to use, but less secure than more modern protocols like SSH. It sends data, including the username and password, in clear text, which makes it vulnerable to eavesdropping and man-in-the-middle attacks.
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 the step-by-step installation of the Telnet network protocol on a Fedora 37.
Prerequisites
- A server running one of the following operating systems: Fedora 37.
- It’s recommended that you use a fresh OS install to prevent any potential issues.
- SSH access to the server (or just open Terminal if you’re on a desktop).
- An active internet connection. You’ll need an internet connection to download the necessary packages and dependencies for Telnet.
- A
non-root sudo user
or access to theroot user
. We recommend acting as anon-root sudo user
, however, as you can harm your system if you’re not careful when acting as the root.
Install Telnet on Fedora 37
Step 1. Before proceeding, update your Fedora operating system to make sure all existing packages are up to date. Use this command to update the server packages:
sudo dnf upgrade sudo dnf update
Step 2. Installing Telnet on Fedora 37.
By default, the Telnet comes in the default Fedora 37 repository. Now run the following command below to install the latest version of Telnet to your Fedora system:
sudo dnf install telnet telnet-server
After the installation, now start and enable the telnet service by issuing the command below:
sudo systemctl start telnet.socket sudo systemctl enable telnet.socket
Verify that Telnet is properly installed on your system by running the following command in the terminal:
telnet
This command will open the Telnet prompt if it’s installed correctly.
Step 3. Configure Firewall.
Telnet communicates via port 23 and needs to be allowed in the inbuilt firewalld:
sudo firewall-cmd --permanent --add-port=23/tcp
Finally, reload the firewall for the rule to take effect:
sudo firewall-cmd --reload
Step 4. Connect to a Remote Device.
You can connect to a remote device using Telnet by running the following command in the terminal: telnet [hostname] [port]
For example, to connect to a remote device with the hostname “your-domain.com
” on port 23
, you would run the following command: telnet your-domain.com 23
Once connected, you will be prompted for a username and password. Once authenticated, you will be given access to the command-line interface of the remote device.
Congratulations! You have successfully installed Telnet. Thanks for using this tutorial for installing the Telnet network protocol on your Fedora 37 system. For additional help or useful information, we recommend you check the official Fedora website.