Telnet — Legacy / Insecure
Cheat sheet · https://pcornel.dk/topic.php?topic=747
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.
Remember
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.
First checks
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.
Commands
show running-config | section line vty- Inspect VTY authentication and allowed transports.
transport input telnet- Allow Telnet on the lines; unencrypted, avoid in production.
show usersshow line
Verify in this order
SSH working → every VTY range set to transport input ssh → TCP 23 no longer listening → Telnet attempts refused → only encrypted management remains
Where it usually breaks
physical/link dependency → local object state → peer/control state → policy → forwarding/adjacency → end-to-end result
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=747