Skip to content
Protocols8 min read14.08.2026

What Is Telnet, How Does It Work and Why Is It Insecure?

Telnet is an early remote-terminal protocol built around a network virtual terminal. Its classic design does not provide the encryption and identity verification expected for internet administration today.

TelnetPort 23Remote terminalLegacy protocol
Remote text terminal in Varkuna Connect

What is Telnet?

Telnet is a client-server protocol for interactive text communication with a remote system. Its common default TCP port is 23, although a service can be configured on another port.

The protocol defines a network virtual terminal and a way for peers to negotiate options such as echo behavior or terminal type. Classic Telnet does not include modern cryptographic confidentiality, integrity or strong server identity verification.

How does a Telnet session work?

  1. 1
    Open a TCP connection

    The client connects to the Telnet service. Port 23 is common but not mandatory.

  2. 2
    Negotiate terminal options

    Client and server may agree on echo, terminal type and other session behavior.

  3. 3
    Send login details

    The server may request a username and password; traditional Telnet sends them without encryption.

  4. 4
    Start the text session

    Commands and output continue across the same unencrypted TCP stream.

Telnet vs SSH

FeatureTelnetSSH
Common port2322
EncryptionNone in classic useEncrypted session
Server identityNo modern cryptographic verificationHost-key verification
User authenticationMay expose a plain-text passwordPassword, public key and other methods
Recommended over the internetNoYes, with correct configuration

Why is Telnet risky?

Traffic can be read

An observer on the network path may see usernames, passwords, commands and output.

Server identity is weak

There is no built-in equivalent of modern SSH host-key verification.

Traffic can be altered

Without cryptographic integrity protection, a session is exposed to manipulation.

Legacy devices add risk

Older Telnet-managed equipment may also have weak passwords and unpatched software flaws.

Do not send passwords over the public internet

Avoid sensitive credentials in Telnet sessions. Migrate to SSH whenever the server or device supports it.

Where is Telnet still encountered?

Legacy systems

Older network devices, industrial systems or specialized services that do not support SSH.

Isolated laboratories

Restricted test networks where the traffic cannot leave the controlled environment and the risk is accepted.

Simple protocol testing

A Telnet client is sometimes used to inspect plain-text TCP services, although nc or service-specific tools are often better.

Migration periods

Temporary access while a system moves to SSH, a secure management gateway or replacement hardware.

How to reduce risk when Telnet is unavoidable

Isolate the network

Do not expose Telnet directly to the internet; place it on a separate management network or behind a controlled VPN.

Restrict access

Allow connections only from specific management addresses at the firewall.

Avoid reused credentials

Do not use a shared high-privilege password or one that protects other systems.

Create a migration plan

Set a path toward SSH-capable firmware, a secure gateway or device replacement.

Continue

Put the guide into practice.

Review the related Varkuna product or open its detailed user guide.