Quiz Entry - updated: 2026.07.05
What is a complete basic security configuration for a Cisco switch?
Encrypt passwords (service password-encryption), set enable secret, then secure both the console line and the VTY lines each with a password plus login.
! Encrypt all passwords
Switch(config)# service password-encryption
! Set privileged EXEC password
Switch(config)# enable secret Cla55
! Secure console access
Switch(config)# line console 0
Switch(config-line)# password Cisc0
Switch(config-line)# login
Switch(config-line)# exit
! Secure VTY (remote) access
Switch(config)# line vty 0 15
Switch(config-line)# password Cisc0
Switch(config-line)# login
Switch(config-line)# end
Go deeper:
Jeremy's IT Lab — SSH (CCNA Day 42) — builds the full secure baseline (enable secret, console, VTY, encryption) end-to-end.
Cisco IOS (Wikipedia) — the global-config commands this baseline strings together.