Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Telnet — Legacy / Insecure

Direct answer

Telnet is a legacy remote CLI protocol (TCP 23) that sends usernames, passwords and all session data in clear text. Anyone on the path can capture them.

When to use this

Use it only to find and remove it from devices, or as a quick TCP port test (telnet <ip> <port>) — not for management.

First 30 seconds

1. show running-config | section line vty — any range without transport input ssh?

2. Set transport input ssh on every range.

3. show control-plane host open-ports — TCP 23 gone?

4. Test: telnet <device> from a management host is refused; SSH works.

5. Check other devices with the same template.

Operational verification

SSH working → every VTY range set to transport input ssh → TCP 23 no longer listening → Telnet attempts refused → only encrypted management remains

Evidence · next step

1. Inventory VTY transports and reachable sources.
2. Disable Telnet and require SSH.
3. Review local secrets, storage type and privilege.
4. Test central AAA/MFA and local emergency fallback.
5. Verify logging and credential-recovery controls.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE
Key commandtransport input telnet
Scope / prerequisiteUse it only to find and remove it from devices, or as a quick TCP port test (telnet ) — not for management.
Show · 1Reference · 1
What next?3 suggested next steps
Child topics (this level)2
Catalog command links2
Evidence1
On this pageJump to a specific section
Cisco IOS / IOS XE first

Primary Commands

Configuration and operational commands for this Topic.

Verification

Show Commands

Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

5 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Read-only Verification Verify boundary
show users
show ssh
show running-config | section line vty

Compare active users with SSH sessions and configured transports. show users alone cannot reliably classify every connection as SSH or Telnet. Confirm legacy clients and monitoring scripts before retirement.

Step 2 Known-good, broken state and proof boundary Verify boundary

Known-good for Telnet means the intended object exists in the correct scope, the relevant show running-config | section line vty fields agree with desired state, dependencies needed by the flow are reachable/usable, and the original operation succeeds again on the same target. Evidence boundary: show running-config | section line vty shows only the fields it exposes at that time; it does not by itself show root cause, hidden provider state or end-to-end success.

Step 3 Failure Signatures Narrow the fault

Telnet still reachable: inspect all VTY ranges, alternate listeners and the actual target address. SSH replacement fails: follow SSH before removing the legacy path.

Step 4 Observation-driven branch tree Narrow the fault

Troubleshooting branch for Telnet: if show running-config | section line vty cannot resolve the intended object, verify target identity/context first; if the object resolves but state differs from intended, isolate configuration, precedence and dependency ownership; if local state matches intent but the original operation still fails, move outward to the first adjacent dependency or consumer; if a minimal change alters the symptom without restoring the same failing operation, treat that as a changed failure point rather than closure.

Step 5 Where it fails Narrow the fault

Closure requires original-test success plus independent verification that no collateral route, VLAN, peer, tunnel, queue, security policy or redundant path regressed. For Telnet, document the exact failure point and why adjacent layers are excluded. Source-backed expectations remain separate from observed Evidence.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

command output · 1
Command lookup Jump straight to Cisco syntax
Drill down

Subtopics

Go one level deeper into this subject.

Key points

Disable it with transport input ssh on every VTY range — transport input all and older defaults still allow Telnet. Check all ranges: many switches have line vty 5 15 configured separately. If a device cannot run SSH, reach it only through an encrypted jump host or out-of-band network.

Key checks
  • show running-config | section line vty — transport input on every VTY range.
  • show line vty 0 4 (and 5 15) — Allowed input transports.
  • show control-plane host open-ports — whether TCP 23 is listening.
  • show users — any current Telnet sessions.
ReferenceWhat it is2 sections · depth on demand

What it is

Telnet exposes management traffic without transport encryption, while password policy governs credential length, uniqueness, storage, lifecycle and stronger factors.

Path: Networking → Security → Telnet. The shared core remains valid, but this occurrence is bounded to Telnet in the path shown here; use the local description, dependencies and independent check rather than assuming sibling Topics are equivalent. Local intent: Telnet: Insecure management protocol, Should normally be replaced by SSH.

ReferenceHow it works3 sections · depth on demand

Technical Mechanics

Telnet terminal negotiation is distinct from authentication and encryption. An ACL can limit who reaches a Telnet listener; it cannot protect credentials on the allowed network path. Retained child references document legacy behavior for troubleshooting.

How it works

Telnet — semantic mechanics and ownership. Read the Topic as a sequence of state owners rather than as a list of settings. For every transition identify the input object, the component that evaluates or mutates it, the durable/runtime state that results, and the next consumer. When two layers expose similarly named states, preserve their different semantics and identifiers so a local success cannot silently stand in for downstream behavior.

How it works

Telnet must be reasoned about as a state transition rather than as a single command result. The primary observation show running-config | section line vty is a bounded read surface: correlate its fields with the configured intent, dependency state and the consumer that actually experiences the symptom.

ReferenceImportant terms & boundaries5 sections · depth on demand

Key operational limits

  • Replace Telnet with SSH except in a deliberately isolated lab
  • Prefer long unique credentials stored as supported hashes/secrets, not reversible plaintext
  • MFA and certificates reduce reliance on reusable passwords
  • Rotation should be risk/event driven and must not encourage predictable patterns.
  • For Telnet, verify the local state before inferring downstream or end-to-end success.

Proof Boundaries

Disabling Telnet does not prove secure SSH algorithms, host-key trust or least-privilege authorization.

In depth

Telnet: legacy and insecure

Telnet sends everything in clear text, including usernames and passwords, so anyone who can capture traffic on the path can read them. Cisco's IOS hardening guide recommends using SSH instead, configuring VTY lines with transport input ssh so Telnet isn't accepted.

Why Telnet must go

ProblemConsequence
Clear-text credentialsCaptured passwords give full device access
Clear-text sessionConfiguration and commands are visible
No server authenticationEasy to impersonate a device
Often left on by default in old configurationsForgotten exposure

Finding and removing Telnet

R1# show running-config | section line vty
line vty 0 4
 transport input telnet ssh
line vty 5 15
 transport input telnet
R1(config)# line vty 0 15
R1(config-line)# transport input ssh
R1# show control-plane host open-ports | include 23
R1#
scanner$ nmap -p 23 --open 10.0.0.0/16 -oG - | grep "23/open"
Host: 10.10.3.7 ()  Ports: 23/open/tcp//telnet///

After the change, port 23 no longer appears; a network scan shows any remaining devices still accepting Telnet.

Remaining legitimate uses

UseBetter approach
Old devices that don't support SSHReplace them; until then isolate on a management network
telnet <host> <port> as a TCP testFine as a client tool for testing ports (no credentials sent)
Console servers using Telnet to portsUse SSH-capable console servers

Policy

Make "no Telnet" part of the configuration baseline, audit it automatically, and treat any device that can't do SSH as end-of-life.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Quick reference

Telnet gives remote CLI access over TCP 23 without encryption: usernames, passwords and all commands cross the network in clear text. It should be disabled on all production devices in favour of SSH.

line vty 0 15
 transport input ssh

Documented example, not captured output.

Check for active Telnet use with show users and show line before disabling it, and update any scripts that still use it.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
ReferenceConfiguration & state1 section · depth on demand

Cisco Configuration

State-changing retirement step, after validating an independent SSH session and console recovery:

line vty 0 4
 transport input ssh

Repeat for additional VTY ranges present on the device. Do not remove the only working access path before SSH and authorization are proven.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical examples

Configuration & expected output

Concrete examples are shown only when the stored reference contains an actual configuration or output shape for this Topic.

Configuration example

Cisco IOS / IOS XEDisable Telnet by allowing SSH only

Assumptions: Lab device; names, addresses and secrets are examples.

ip ssh version 2
!
line vty 0 15
 transport input ssh
 login local
 access-class MGMT in

Expected output

Cisco IOS / IOS XEshow line vty 0 | include Allowed

Expected state: Only ssh listed as input transport.

Allowed input transports are ssh.
! Illustrative output, not captured Evidence.
Telnet is no longer accepted on this line. Check a line in the 5–15 range too — a second VTY block is easily left on the default.
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

Authoritative/upstream documentation reviewed for bounded claims in Security → Telnet. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
Telnet insecurepassword length complexityMFA certificates biometrics
Embedded reference data

Quick lookup tables

Telnet and Password Policy evidence chain

Configuration, operational state, counters and downstream proof remain separate.

BoundaryQuestionEvidenceDoes not prove
DefinitionWhat is configured or intended?running configuration / controller policylive operation
CountersDid controlled traffic or an event reach this stage?scoped counters/timestampscomplete return path
Next boundaryWhat consumes or transports this state?management source → encrypted transport → authentication factor → authorization → accounting/logging → emergency recoveryapplication success
Depth when you need it

Deep reference

Healthy vs suspicious evidence

Expected Output

Expected state after migration: every intended VTY range permits SSH and excludes Telnet. Confirm new Telnet sessions are refused in a bounded authorized test; do not infer this solely from existing sessions.

Confirmation

Confirm action

Continue?