UbuntuUbuntu Based

How To Install Telnet on Ubuntu 22.04 LTS

Install Telnet on Ubuntu 22.04

In this tutorial, we will show you how to install Telnet on Ubuntu 22.04 LTS. Telnet, an acronym for “Telecommunication Network,” is a network protocol used on the internet or local area networks to provide a bidirectional interactive text-oriented communication facility using a virtual terminal connection. Despite its age and security vulnerabilities, Telnet remains a valuable tool for network troubleshooting and testing.

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 on Ubuntu 22.04. You can follow the same instructions for Ubuntu 22.04 and any other Debian-based distribution like Linux Mint, Elementary OS, Pop!_OS, and more as well.


  • A server running one of the following operating systems: Ubuntu 22.04, 20.04, and any other Debian-based distribution like Linux Mint.
  • It’s recommended that you use a fresh OS install to prevent any potential issues.
  • Access the terminal on your Ubuntu system, where we’ll execute the commands for a seamless Telnet installation.
  • 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 the root user. We recommend acting as a non-root sudo user, however, as you can harm your system if you’re not careful when acting as the root.

Install Telnet on Ubuntu 22.04 LTS Jammy Jellyfish

Step 1. Before installing Telnet, it’s essential to update and upgrade your system to ensure compatibility. Run the following commands in the terminal:

sudo apt update
sudo apt upgrade

Step 2. Installing Telnet on Ubuntu 22.04.

Before installing Telnet, it’s crucial to confirm its availability in the default repository of Ubuntu. You can do this by executing the following command:

apt show telnetd

This command will display the version of Telnet available in the repository.

To install Telnet on Ubuntu, run the following command:

sudo apt install telnetd

After successful installation, you can check the status of the Telnet service using the following command:

sudo systemctl status inetd

Step 3. Configure Firewall for Telnet.

To configure the Firewall for Telnet, enable the firewall using the ufw utility as follows:

sudo ufw enable

Since Telnet uses port 23 for communication, allow connections on this port using the command:

sudo ufw allow 23

Step 4. Using Telnet.

Once Telnet is installed and configured, you can use it to test TCP connections to a remote server on any port. To open a connection to a remote server, open a terminal window on your computer, and then type telnet IP/host port, where IP/host represents the IP address or hostname of the server, and port represents the TCP port number.

For example, to connect to example.com on port 80, type the following command:

telnet idroot.us 80

Despite its utility, Telnet has several risks, especially when used over public networks. It does not encrypt any of the data transmitted between the client and the server, making it vulnerable to data breaches, identity theft, malware infection, or unauthorized access to your system. It also relies on weak authentication methods and does not provide any guarantees of integrity and confidentiality for the data exchanged between the client and the server.

Congratulations! You have successfully installed Telnet. Thanks for using this tutorial for installing the Telnet (Teletype Network) network protocol on the Ubuntu system. For additional help or useful information, we recommend you check the official Telnet 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!


r00t is a seasoned Linux system administrator with a wealth of experience in the field. Known for his contributions to idroot.us, r00t has authored numerous tutorials and guides, helping users navigate the complexities of Linux systems. His expertise spans across various Linux distributions, including Ubuntu, CentOS, and Debian. r00t's work is characterized by his ability to simplify complex concepts, making Linux more accessible to users of all skill levels. His dedication to the Linux community and his commitment to sharing knowledge makes him a respected figure in the field.
Back to top button