Scenario
A new router has just been unboxed. It is called Router, has the management address 10.5.1.1/24 and accepts Telnet on its VTY lines with a shared password. Telnet sends everything in clear text, so you must switch the router to SSH only: the name R1, a domain, an RSA key, a local administrator account and VTY lines that accept only SSH and ask for that account. The password you choose for this lab is fictional and is never stored.
Topology
Requirements
- 1The hostname is R1
- 2The domain name is lab.example.com
- 3An RSA key of at least 2048 bits exists
- 4A local user admin exists, protected with a secret
- 5SSH version 2 is enforced
- 6VTY lines 0 to 4 accept only SSH and authenticate with the local users
The router is called Router and accepts Telnet. Type ? for the commands you can use. Start with: enable
Router> show running-config
CCNA lab · about 12 min
Secure remote access with SSH
Replace Telnet with SSH on a router: name the device, set a domain, generate the keys, create a local user and allow only SSH on the VTY lines.
This lab is included in the CCNA plans and in the free trial.