Use it only to find and remove it from devices, or as a quick TCP port test (telnet <ip> <port>) — not for management.
Telnet — Legacy / Insecure
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.
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.
SSH working → every VTY range set to transport input ssh → TCP 23 no longer listening → Telnet attempts refused → only encrypted management remains
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.
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
transport input telnetPrimary Commands
Configuration and operational commands for this Topic.
Show Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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
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 · 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.
Subtopics
Go one level deeper into this subject.
Telnet sends usernames, passwords and all session data in clear text, so anyone on the path can read or capture them.
Subtopic Should normally be replaced by SSHTelnet should normally be replaced by SSH: configure a hostname, domain name and RSA key, ip ssh version 2, and transport input ssh on the VTY lines.
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.
show running-config | section line vty—transport inputon 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
Direct Answer
Telnet is insecure legacy management: ordinary Telnet provides no confidentiality for credentials or session data. Prefer SSH for remote CLI access.
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
Official Sources
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
| Problem | Consequence |
|---|---|
| Clear-text credentials | Captured passwords give full device access |
| Clear-text session | Configuration and commands are visible |
| No server authentication | Easy to impersonate a device |
| Often left on by default in old configurations | Forgotten 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
| Use | Better approach |
|---|---|
| Old devices that don't support SSH | Replace them; until then isolate on a management network |
telnet <host> <port> as a TCP test | Fine as a client tool for testing ports (no credentials sent) |
| Console servers using Telnet to ports | Use 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.
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.
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
Configuration & expected output
Concrete examples are shown only when the stored reference contains an actual configuration or output shape for this Topic.
Configuration example
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 inExpected output
show line vty 0 | include AllowedExpected 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.Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%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.
Quick lookup tables
Telnet and Password Policy evidence chain
Configuration, operational state, counters and downstream proof remain separate.
| Boundary | Question | Evidence | Does not prove |
|---|---|---|---|
| Definition | What is configured or intended? | running configuration / controller policy | live operation |
| Counters | Did controlled traffic or an event reach this stage? | scoped counters/timestamps | complete return path |
| Next boundary | What consumes or transports this state? | management source → encrypted transport → authentication factor → authorization → accounting/logging → emergency recovery | application success |
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.