Use it to explain why Telnet must not be used for management.
Insecure management protocol
Telnet sends usernames, passwords and all session data in clear text, so anyone on the path can read or capture them.
1. Telnet sends credentials in cleartext.
2. Disable on VTYs.
3. Use SSH v2.
4. Check all lines.
5. Audit devices.
VTY → transport input ssh only
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show ip sshShow 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 Finding Telnet Verify boundary
show line vty 0 15 | include Allowed input|Allowed output
show tcp brief all | include :23
nmap -p 23 10.0.0.0/24
Any device answering on TCP 23 should be migrated to SSH; for devices that cannot do SSH, restrict Telnet to a management VLAN with ACLs and plan replacement.
Step 2 Common mistakes Narrow the fault
- Telnet left on VTYs as fallback.
- Telnet used across untrusted networks.
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.
- 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.
show line vty 0 15— transport inputshow running-config | include transport input— config
ReferenceWhat it is1 section · depth on demand
Why Telnet is unsafe
Telnet (TCP 23) sends credentials and every command in clear text; anyone with access to the path (or a SPAN port) can read them with Wireshark ("Follow TCP stream"). It also has no server authentication, so man-in-the-middle is trivial. Find it with show line vty 0 15 | include Allowed or a port scan for TCP 23.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Insecure management protocols expose credentials and configuration
Several legacy protocols send authentication and data without encryption:
| Protocol | Risk | Secure replacement |
|---|---|---|
| Telnet (TCP 23) | Clear-text login and session | SSHv2 |
| HTTP (TCP 80) | Clear-text web login | HTTPS (ip http secure-server) |
| SNMPv1/v2c | Community string in clear text; no encryption | SNMPv3 with priv |
| TFTP | No authentication | SCP or SFTP |
| FTP | Clear-text credentials | SCP or SFTP |
SSH as the baseline on Catalyst 9300
The IOS XE 17.3 SSH chapter describes the server setup: hostname, ip domain name, and crypto key generate rsa (which enables SSH automatically; at least 1024 bits recommended). It also documents timeout and retry settings, and show ip ssh / show ssh for verification.
C9300# show running-config | include ^ip http|^snmp-server community|transport input
ip http server
snmp-server community public RO
transport input telnet ssh
C9300(config)# no ip http server
C9300(config)# ip http secure-server
C9300(config)# no snmp-server community public
C9300(config)# line vty 0 15
C9300(config-line)# transport input ssh
C9300(config)# ip scp server enable
Audit checklist
| Item | Command |
|---|---|
| VTY transport | show running-config | section line vty |
| HTTP server state | show ip http server status |
| SNMP communities | show snmp community |
| Listening services | show control-plane host open-ports |
| File transfers | Use copy scp: instead of copy tftp: |
Compensating controls
When a legacy protocol can't be removed yet (old management tools), restrict it: an ACL to management hosts only, a management VRF or out-of-band network, and a plan to migrate. Encryption doesn't remove the need for access restrictions. Apply access-class on VTY lines for SSH too.
Documented example, not captured output.
Quick reference
Telnet sends usernames, passwords and all session data in clear text; anyone on the path can capture them with a packet capture. It also lacks server authentication, so it is vulnerable to interception and session hijacking.
show line vty 0 15 | include Allowed input
show users
show control-plane host open-ports | include 23
Any device still accepting transport input telnet should be treated as a finding in audits.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
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 → Insecure management protocol. 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%