Learning Objectives

By the end of this chapter, you will be able to:

  • Define remote login and Telnet.
  • Describe how a Telnet session works on port 23.
  • Explain why Telnet is insecure and why SSH replaced it.
  • Group modern remote access tools by need.

Related: IP address and DNS, network security and firewalls, client server architecture.

Remote login

Remote login means operating a distant computer over a network as if you sat before it. Your machine is the client. The distant machine is the server or host. Keystrokes travel one way. Screen text travels the other. The job is administration. Check a log, restart a service, read a sensor, fix a router without driving to it.

What Telnet is

Telnet (Teletype Network) is a protocol from 1969 that provides an interactive text channel using a virtual terminal. It is bidirectional and fully text based. No images. No encryption.

sequenceDiagram
  participant C as Client (your PC)
  participant S as Server port 23
  C->>S: telnet 192.168.1.1 23
  S->>C: login:
  C->>S: username and password in clear text
  S->>C: shell prompt
  C->>S: command text
  S->>C: command output text

Steps: client opens port 23, server asks for credentials, user authenticates, session stays open, each line is sent and executed remotely, results return as text.

Why Telnet is now a risk

Telnet sends everything in clear text. Names, passwords, commands, data. Anyone who can sniff the path can read it. That is not a flaw in one product. It is the design of the protocol.

In 2081 no public internet service should offer Telnet for administration. It persists in three narrow places. Closed lab networks with no internet route. Legacy equipment that cannot be patched and sits behind strict ACLs. Port testing where a technician types telnet mail.example.com 25 to see if a port answers, not to log in.

Even then, treat Telnet as a probe, not a login method.

Three groups of modern access

Do not list tools as a flat set. Group by need.

Group Need Tools What differs
A. Secure shell Text administration over the internet SSH on port 22 with keys Encrypted channel, key based auth, file copy via SCP and SFTP inside the same suite
B. Graphical desktop See and control the whole screen RDP for Windows, VNC for cross platform Pixel and input streamed, needs encryption or a VPN underneath
C. Managed support Help a user who cannot open ports AnyDesk, TeamViewer, Chrome Remote Desktop plus VPN first models Brokered connection through a vendor relay, often with attended consent

All modern options encrypt. SSH adds host verification so a fake server is detected. RDP and VNC must be wrapped in TLS or run only inside a VPN. Support tools add session logs and consent screens for audit.

Telnet versus SSH

Criterion Telnet SSH
Encryption None. All clear text. Full. Handshake, key exchange, symmetric cipher for the session.
Port 23 22
Auth Password only on the wire Password or key pair. Keys do not travel.
Integrity No protection. Injection possible. Protected. Tampering is detected.
Status today Legacy and lab only Standard for remote shells

Business uses and controls

A cooperative in Narayanghat once managed a branch router by Telnet over the carrier link. One captured password would open that router to anyone. The fix is not a longer password. It is a different protocol and a smaller surface.

Minimum controls for remote access:

  • Disable Telnet on any internet reachable interface. Leave port 23 closed at the firewall.
  • Use SSH with keys for servers, and store private keys with a passphrase.
  • Use VPN as the outer gate for RDP and internal web consoles so those ports are never public.
  • Log every remote session with time, user, and source address, and review weekly.
  • Rotate credentials when staff leave. Remove their key from authorized_keys, do not just change a shared password.

Self-check

Nepal worked example: replacing Telnet on a campus router (NPR, BS 2081)

A college in Dhulikhel still allows Telnet on its edge router on 2081-06-12. Four staff share one password sent by Viber. The IT head budgets a one day migration.

Costs on that date:

  • Technician half day to harden config: NPR 4,000
  • New SSH key pairs for three admins and removal of Telnet: NPR 0 software, time included
  • Router firmware update and backup: included in 4,000
  • VPN setup for off campus admin using existing firewall: NPR 0 licence, 2 hours of config
  • Printed one page SSH login guide for three staff: NPR 150

Total one time = NPR 4,150.

Risk avoided: a single leaked Viber message no longer opens the router to the internet. Future cost of a breach (ISP abuse report, blacklisting, downtime during re exams) far exceeds 4,150. If the college must keep one Telnet device for a legacy lab printer, isolate it on a VLAN with no internet route and allow only one admin IP.

Summary

Telnet gave the internet its first remote shell. It also sends secrets in clear text, so it cannot remain on a public path. SSH replaces it for text, RDP and VNC cover full desktops inside encryption or VPN, and brokered support tools handle attended help. Close port 23 at the edge. Move to keys. Log access. The cost is hours, the saving is the incident that never happens.

Key Takeaways

  • Telnet is a 1969 clear text remote terminal on port 23.
  • Its risk is plaintext credentials and commands exposed to sniffing.
  • SSH on port 22 with encryption and keys is the standard replacement.
  • Group tools by need: shell, graphical desktop, managed support.
  • Minimum control is VPN gate, disabled Telnet, keys, and session logs.

Review Questions

  1. Define Telnet and remote login in one paragraph.
  2. Walk through a Telnet session step by step with ports.
  3. Why is even a strong password unsafe with Telnet.
  4. Compare SSH, RDP, and AnyDesk by group, encryption, and audit.
  5. List five controls a small firm should apply before allowing remote admin.