Install Telnet Client in Ubuntu Operating System

What is Telnet?

Install Telnet Client in Ubuntu – Telnet is an application protocol utilized on the Internet or local area network to implement a bidirectional interactive text-oriented communication facility utilizing a virtual terminal connection.

User data is distributed in-band with Telnet control information in an 8-bit byte-oriented data connection over the Transmission Control Protocol (TCP).

Requirements Before Telnet Installation

  • A server should be running on Ubuntu 20.04 server.
  • A non-root user with sudo privileges.
  • A static IP address configure on your server.

To install telnet in ubuntu simply just follow the instructions below described.

Just go to the terminal by going to the show applications in the search bar and search the terminal.

By default, Telnet packages are already installed in the ubuntu LTS 18.04 and 20.04 versions.

If you want to install it manually just paste the below code into the terminal.

The command is:

sudo apt-get install telnetd -y

Once you have successfully installed the telnet and then you need to check the status of telnet services by applying the below command line in the terminal.

The command is:

sudo systemctl status inetd

if you get the output as the following result it means you have successfully installed the telnet services in your ubuntu operating system.

? inetd.service – Internet superserver

   Loaded: loaded (/lib/systemd/system/inetd.service; enabled; vendor preset: enabled)

   Active: active (running) since Mon 2021-02-22 15:24:15 UTC; 38s ago

     Docs: man:inetd(8)

 Main PID: 2883 (inetd)

    Tasks: 1 (limit: 1114)

   CGroup: /system.slice/inetd.service

           ??2883 /usr/sbin/inetd

Feb 22 15:24:15 ubuntu2004 systemd[1]: Starting Internet superserver…

Feb 08 15:24:15 ubuntu2004 systemd[1]: Started Internet superserver.

You can also test the Telnet Connection from Remote System for that simply just follow the instruction carefully.

The telnet server is now successfully installed and listening on port 23 which means the server started successfully.

Now, this is the time to connect the Telnet server from the remote system.

Next, get logged in to another Ubuntu system and run the following command to connect the system.


Then you will be prompted to enter your username and password. Once you have successfully authenticated, You could see the below output.


Connected to

Escape character is ‘^]’.

Ubuntu 20.04 LTS

ubuntu2004 login: rootpc


Last login: Mon Nov 22 15:41:31 UTC 2018 from localhost.localdomain on pts/2

Welcome to Ubuntu 20.04 LTS (GNU/Linux 4.15.0-20-generic x86_64)

 * Documentation:

 * Management:

 * Support:

  System information as of Mon Nov 22 15:46:19 UTC 2018

  System load: 0.0 Processes: 108

  Usage of /: 81.7% of 7.81GB Users logged in: 2

  Memory usage: 28% IP address for enp0s3:

  Swap usage: 0%

 * Security certifications for Ubuntu!

   We now have FIPS, STIG, CC, and a CIS Benchmark.


 * Want to make a highly secure kiosk, smart display, or touchscreen?

   Here’s a step-by-step tutorial for a rainy weekend, or a startup.


187 packages can be updated.

88 updates are security updates.


Then you can now run any ubuntu command on the Telnet server using Telnet.

You can also open the server with the specific port number by simply applying the below command.

For instance, if the telnet server has been running the IP ( 90

) with the port number just follow the below code.

telnet 90

Then, If port 90 is open, you can able to see the following output:


Connected to

Escape character is ‘^]’.

If port 90 is blocked or the telnet service with the port is not running. You can able to see the following output:


telnet: Unable to connect to remote host: Connection refused

Leave a Comment