π€ What is Telnet? (Basic Idea)
Sometimes, we want to:
Access another computer remotely π
Run commands on a remote machine π»
Manage servers from far away
π Telnet was designed for this purpose.
π§ Simple Definition
π Telnet is an application-layer protocol that allows a user to remotely log in to another computer over a network and execute commands.
π§ What Does Telnet Do?
Using Telnet, a user can:
Log in to a remote system
Execute commands as if physically present
Manage files and processes remotely
π Telnet provides a command-line interface, not a graphical one.
π§ Real-Life Analogy
π Phone Call to Control a Computer
You give instructions verbally
Other person executes them
π Telnet works similarly:
You type commands
Remote system executes them
π§ Where Does Telnet Belong in OSI Model?

Telnet is an Application Layer protocol
Uses TCP for communication
π Port Number Used by Telnet
Protocol | Port |
|---|---|
Telnet | 23 |
π Telnet always uses TCP port 23.
π How Telnet Works (Step-by-Step)
1οΈβ£ User runs Telnet client
2οΈβ£ Client connects to remote server (port 23)
3οΈβ£ Server asks for username & password
4οΈβ£ User enters credentials
5οΈβ£ Login successful
6οΈβ£ User executes commands remotely
π Everything happens via text commands.
β¨οΈ Telnet Communication Style
Character-by-character transmission
Text-based (ASCII) communication
No encryption β
π This is Telnetβs biggest weakness.
β οΈ Major Security Problem with Telnet
π¨ Telnet is NOT secure
Why?
β Username sent in plain text
β Password sent in plain text
β Commands visible to attackers
π Anyone using packet sniffing can:
Steal passwords
Hijack sessions
π Why Telnet Is Considered Insecure?

No encryption
No authentication protection
Vulnerable to attacks
π This is why Telnet is deprecated.
π§ Uses of Telnet (Today)
Although insecure, Telnet is still used:
π For learning & teaching networks
π§ͺ Testing open ports
π Checking server response
π§ Understanding client-server model
π Not recommended for production systems.
π Telnet vs SSH (Quick Preview)
Feature | Telnet | SSH |
|---|---|---|
Security | β No | β Yes |
Encryption | β No | β Yes |
Port | 23 | 22 |
Usage | Old / Testing | Modern / Secure |
π SSH has replaced Telnet.
π§ Advantages of Telnet
Simple to use
Low overhead
Easy remote access
β Disadvantages of Telnet
No encryption
Poor security
Easily attackable
Not safe for Internet use
π§ Memory Tricks
TELNET = TEXT LOGIN
23 = Telnet port
No lock π = Not secure
β One-Line Summary
πΉ Telnet is an application-layer protocol that allows remote login using plain-text communication, making it insecure for modern use.