What Is Telnet Command and What Is Telnet Used For?


Telnet is a command-line protocol used to manage different devices like Server, PC, Router, Switch, Camera, Firewall remotely. Telnet is a very simple protocol that provides simple remote connection and sending commands or data to the remote network connection. This makes telnet very popular among IT systems. Telnet generally comes after SSH for remote system management from the command line.

History of Telnet

Telnet protocol is created with computer networks. After a research protocol that is developed by DARPA named computer network created. Computer networks made the computers available from remote for management and usage. Telnet is created as a remote command-line interface management protocol. The first usage of the telnet protocol is in 1969. Telnet is designed as a simple TCP/IP protocol.

Telnet Protocol and Server Architecture

Telnet has popular Client and Server architecture. Server-side will provide telnet service to connect from client telnet applications. Telnet server-side generally listens for TCP 23 port to accept telnet connections. But this port can be changed for security or other reasons. So telnet client needs to specify the telnet port explicitly.

Telnet Features

Telnet is a simple protocol which makes it very less features. Telnet protocol provides the following features for remote system management.

  • Simplicity
  • Display connection information
  • Fast
  • Secureless

Device Types Supporting Telnet

As stated previously telnet is a very popular protocol which means it is used by different types of devices in a broad range. Here is a list of devices that uses telnet for remote management.

  • Linux
  • Router
  • Switch
  • Firewall
  • Router
  • Camera
  • IoT
  • Windows
  • Raspberry Pie
  • Cisco IOS

Install Telnet For Linux

As stated previously telnet architecture consists of server and client. Telnet server and the client can be installed into all Linux distributions like Ubuntu, Debian, Fedora, CentOS, RedHat, Mint, etc.

$ sudo apt install telnet

Install For Windows

Telnet server and client can be installed into a Windows server or client os different ways. Telnet client and server is provided by Windows natively. The alternative is installing 3rd party applications like MoboTerm etc.

LEARN MORE  Linux "X11 Connection Rejected Because of Wrong Authentication" Error and Solution

How To Install and Use Telnet Client In Linux and Windows

Mobaxterm Installation and Usage For Windows Personal Edition

Telnet Security

Telnet is security is the biggest problem of the telnet protocol. Telnet protocol is not encrypted which makes it vulnerable to the man in the middle-security attacks. The telnet traffic can be readable if someone can sniff the traffic from the network. Encryption makes it unreadable by others other than the remote part. Telnet also provides only password-based authentication. As stated previously passwords are transmitted over the network where passwords can be caught by attackers. Password-based authentication is less secure than certificate or key-based authentication.

Encrypt Telnet with Telnet/s

By default, the telnet protocol does not encrypt its traffic. If we want to encrypt traffic we can use Telnet/s which encrypts the traffic. Actually, some TLS/SSL tunnel is created and telnet traffic is transmitted through this TLS/SSL tunnel. Because of the TLS/SSL implementation it Telnet/s is not used widely.

Telnet Alternatives

With its positive and negative attitudes, telnet has different alternatives. SSH is the biggest and better alternative to the Telnet protocol.

  • SSH provides better security by encrypting traffic and providing better and secure authentication. SSH also has a lot of extra features like X desktop forwarding, port forwarding, etc.
  • RDP is not a command-line remote protocol it is used as GUI based. RDP needs more network bandwidth but provides complete desktop experience.
  • VNC is an opensource alternative similar to the RDP protocol. It provides desktop remotely but slower than RDP in most cases.
  • SNMP is designed for remote management over non-interactive commands. But it is mainly used to monitor remote systems and not a complete alternative to the telnet protocol.
LEARN MORE  What Is Computer Hardware and Components?

Telnet Application and Servers For Fun

There are some telnet services on the internet which provide some asciinema or ASCII based cinema. This service runs a short film over the telnet protocol. We can access this film from towel.blinkenlights.nl like below.

$ telnet  towel.blinkenlights.nl
Telnet Fun
Telnet Fun

Get your popcorns the cinema starts.

Telnet Fun
Telnet Fun

Leave a Comment