Telnet is a legacy application-layer protocol that provides command-line access to remote systems. It operates over TCP port 23 and allows users to remotely log into a system to execute commands, manage files, or perform administrative tasks.

Protocol Layer: Application Layer (OSI Layer 7)

Port: TCP/23

Transport: TCP

Encryption: None (plaintext)


How Telnet Works

The basic operation of Telnet involves establishing a virtual terminal session between a Telnet client and a Telnet server.

Telnet Session Flow

  1. Connection Establishment
  2. User Authentication
  3. Remote Access

Security Limitations

While Telnet is functional, its lack of encryption poses major risks:

image.png


Example: Telnet in Action

A user initiates a Telnet session to a remote system:

$ telnet 192.168.1.10
Trying 192.168.1.10...
Connected to 192.168.1.10.
Escape character is '^]'.

login: Omar
password: ********

Welcome to Bento Linux!
Omar@bento:~$