Module 5.4 55 minBeginner

SSH and secure management

Telnet sends credentials in plain text and has no place on a modern network. SSH replaces it with strong encryption. This chapter walks through generating RSA keys, enabling SSH version 2, and locking down VTY lines.

Course plan — preview

What you'll learn

  • Generate an RSA key pair for SSH.
  • Configure local username/password and apply to VTY.
  • Disable Telnet on VTY lines.

Why SSH and not Telnet

Telnet (port 23) sends every keystroke and password in cleartext. Anyone on the path can capture credentials with a basic packet capture. SSH (port 22) encrypts the entire session, including the username/password exchange. There is no scenario in 2026 where Telnet is acceptable on a production device.

Enable SSH on a network device

R1(config)# hostname R1
R1(config)# ip domain-name lab.local
R1(config)# crypto key generate rsa modulus 2048
R1(config)# username admin privilege 15 secret S3cretP@ss
R1(config)# ip ssh version 2

R1(config)# line vty 0 4
R1(config-line)# transport input ssh
R1(config-line)# login local
R1(config-line)# exec-timeout 5 0
transport input ssh — explicitly disables Telnet. Without it the VTY accepts both. Always pin VTY transport so a future admin cannot weaken security by accident.

10 more sections in this chapter, plus a 4-question quiz and a hands-on lab.

Course plan

Modules 2–8 are part of the Course & Lab Pass and All-Access Max — start with a free account

You can see the title, summary, learning objectives and the opening sections. The rest of this chapter, like all of modules 2–8, comes with the Course & Lab Pass and All-Access Max. A free account opens Module 1: How Networks Work end-to-end and saves your labs — start there, no card required.

  • Read every chapter in Module 1 — How Networks Work
  • Save labs of up to 5 devices
  • Save up to 3 topologies
  • See the full course syllabus + chapter titles

Free account · no card required · compare plans any time

Build it step by step