Scenario

Ticket: the admin PC 10.32.0.10 should manage R1 (10.32.0.1) over SSH version 2 only. Today the admin PC cannot log in to R1 at all: ssh is refused, and telnet from the admin PC is dropped too. Policy: only 10.32.0.0/24 may log in, with the local user admin, and telnet must be off. The user admin already exists. Fix R1 and do not open the vty lines to everyone.

Topology

R1

Requirements

  1. 1The domain name is set (corp.example.net)
  2. 2An RSA key of at least 2048 bits exists
  3. 3SSH version 2 is selected
  4. 4The vty lines 0 to 4 accept only SSH
  5. 5The vty lines 0 to 4 log in with the local user database
  6. 6The ACL MGMT permits 10.32.0.10 to log in over SSH and still refuses 10.32.9.9
  7. 7The local user admin, the hostname R1 and the vty access-class MGMT are kept

R1 does not let the admin PC in, neither by SSH nor by telnet. Type ? for the commands you can use. Start with: enable

R1> show running-config

CCNA lab · about 15 min

Troubleshoot: the admin PC cannot manage R1 over SSH

Six faults, no domain name, no RSA key, no SSH version, telnet-only vty lines, password login and a management ACL with a typo, keep SSH from working. Find them with show ip ssh and show running-config.

This lab is included in the CCNA plans and in the free trial.

Start the free trial Try the free VLAN lab Today's free lab

All labs

About this lab

Ticket: the admin PC 10.32.0.10 should manage R1 (10.32.0.1) over SSH version 2 only. Today the admin PC cannot log in to R1 at all: ssh is refused, and telnet from the admin PC is dropped too. Policy: only 10.32.0.0/24 may log in, with the local user admin, and telnet must be off. The user admin already exists. Fix R1 and do not open the vty lines to everyone.

About 15 minutes. Included in the CCNA plans and the free trial.

Questions about this lab

Is this a real Cisco router?

No. It is a small simulator written by CertAce. It understands a handful of commands and keeps the state of one router, so you can practise the ideas without lab gear. Real devices print more, and the exam may ask for things this lab does not cover. CertAce is not affiliated with Cisco.

Why does SSH need a domain name and a hostname?

The RSA key pair gets its name from the hostname and the domain name (for example R1.corp.example.net). IOS will not generate the key without both.

What is the difference between login and login local?

login uses the password set on the line (password ...). login local checks a user name and secret in the local database (username ... secret ...). SSH needs a user name, so it needs login local, or AAA.

How can I allow only some hosts to log in?

Put a standard ACL on the vty lines with access-class <acl> in. It filters on the address of the connecting host, before the login.

CertAce is not affiliated with or endorsed by Cisco Systems. CCNA and Cisco are trademarks of Cisco Systems, Inc. The simulator and every command output here were written by CertAce.