A structured lesson workspace with readable content, hands-on examples, and a clean path to completion.
R1# show ip sshSSH Enabled - version 2.0Authentication timeout: 60 secs; Authentication retries: 3Minimum expected Diffie Hellman key size : 1024 bitsIOS Keys in SECSH format(ssh-rsa, base64 encoded):ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC5...
That output confirms SSH v2 is running and shows the RSA public key the router presents to clients. Modern IOS uses 2048-bit RSA or ECDSA keys; older devices default to 1024-bit which is below current recommendations. Check the key size and regenerate if it's too small.
! PrerequisitesR1(config)# hostname R1-HQR1(config)# ip domain-name corp.example.com! Generate the RSA key pair — required before SSH worksR1(config)# crypto key generate rsa modulus 2048The name for the keys will be: R1-HQ.corp.example.com% You already have RSA keys defined for R1-HQ.corp.example.com% Do you really want to replace them? [yes/no]: yes! Force SSH version 2R1(config)# ip ssh version 2R1(config)# ip ssh time-out 60R1(config)# ip ssh authentication-retries 3! Optional but recommendedR1(config)# crypto key generate rsa general-keys modulus 4096R1(config)# ip ssh dh min size 2048! VerifyR1# show ip ssh
The SSH process requires a hostname, domain name, and RSA key pair. Miss any of them and `ip ssh` silently fails — the config accepts it, but SSH won't work. If you're troubleshooting SSH, check these three first.
SSH version 1 is deprecated and vulnerable. Always force version 2 with `ip ssh version 2`. If the router's crypto image doesn't support v2 (older hardware), the config will reject the command — which tells you it's time to upgrade the IOS or hardware. Version 1 should never be used in production.
Version 2.0 confirmed. DH key size 2048 (current best practice). The RSA key is present in SECSH format. From this state, an SSH client can connect using the credentials configured under `line vty` — typically `login local` with a `username` command.
Finish the lesson once you have worked through the material. This awards ★ 15 XP.