Pcornel
Networking · Security › Device Access & Management › Telnet — Legacy / Insecure

Should normally be replaced by SSH

Cheat sheet · https://pcornel.dk/topic.php?topic=1486

Back to the Topic

Answer

Telnet 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.

Remember

  • 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.

First checks

  • show ip ssh — SSH v2 enabled
  • show running-config | section line vty — transport input ssh

Commands

show ip ssh
show ssh
ip domain name
ip ssh time-out
ip ssh authentication-retries
ip ssh version 2
ip http secure-server

Verify in this order

keys → SSH v2 → transport input ssh → Telnet removed

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=1486

Confirmation

Confirm action

Continue?