Installing Telnet Client on Linux and Windows Cloud Servers

2021-10-15 By Sam 330684 Views linux windows telnet networking
10 reviews

Telnet is a command protocol that allows a user to connect to a remote host. It makes use of TCP/IP protocol to establish a connection with the remote computer.

This command is a valuable tool that allows for troubleshooting and testing of various services in a server. One of the main uses of the telnet command is to check if a particular port is listening on a server. The general format of the telnet command is as below:

telnet [hostname/ipaddress] [port number]

The below example command tests if port 22 is listening for the server's IP address 123.123.123.123.

telnet 123.123.123.123 22


telnet18


By default, the Telnet client is not installed in any Linux/Windows distributions. This guide outlines the general steps to install telnet commands in both Linux and Windows servers.




AlmaLinux / Rocky Linux / CentOS / Fedora


Telnet command can be installed using YUM in all CentOS and Fedora distributions.


  1. Execute the below command to install telnet.

    # yum -y install telnet
    

    telnet1

  2. Verify that the command is installed successfully.

    # telnet localhost 22
    

    telnet2




Ubuntu / Debian


Telnet command can be installed both in Ubuntu and Debian systems using the APT command.


  1. Execute the below command to install telnet.

    # apt-get install telnet
    

    telnet3

  2. Verify that the command is installed successfully.

    # telnet localhost 22
    

    telnet4

    telnet5




Windows OS


If the Telnet command is not installed in a Windows server, an output similar to below will be received when trying to use telnet.

windows22telnet1


In this situation, the Telnet command can be installed either through the command prompt or the Server Manager graphical interface.


Installing telnet client through command prompt



  1. To install telnet client, run the below command in the command prompt with administrator permissions.

    > dism /online /Enable-Feature /FeatureName:TelnetClient
    

    windows22telnet2

  2. Type telnet and press Enter in the command prompt, to verify that the command is installed successfully.

    windows22telnet3


Installing telnet client through graphical interface

Server Manager feature can be used to install telnet through a graphical interface. For this, follow the below steps.



  1. Open Server Manager.

  2. Click Add roles and features.

    windows22telnet4

  3. Click Next in the Before you begin screen.

    windows22telnet5

  4. In the Installation Type screen, make sure that the Role-based or feature-based installation option is selected and click Next.

    windows22telnet6

  5. In the Server Selection screen, select the server on which telnet is to be installed. By default, the local server should be selected, click Next.

    windows22telnet7

  6. Click Next in the Server Roles screen without selecting anything, since a Windows feature is being installed rather than a role.

    windows22telnet8

  7. In the Features screen, scroll down the list and select the check box next to Telnet Client and then click Next.

    windows22telnet9

  8. On the Confirmation screen, click Install.

    windows22telnet10

  9. Once the installation has been completed, a similar screen as below will be displayed. Click Close to exit the wizard.

    windows22telnet11

  10. Type telnet and press Enter in the command prompt, to verify that the command is installed successfully.

    windows22telnet12


Related Tutorials

What do you think about this article?

Rate this article
Need assistance?

Try this guide to receive free bundled services at signup on a new free account.

Sign Up

Your Feedback Is Important

We hope you’ll give the new products and updates a try. If you have an idea for improving our products or want to vote on other user ideas so they get prioritized, please submit your feedback on our Community platform. And if you have any questions, please feel free to ask in the Community or contact our Technical Support team.