A network administrator is configuring SSH version 2 on a freshly unpacked Cisco IOS router. Which TWO configuration steps are required before the router will allow the generation of RSA host keys using the 'crypto key generate rsa' command? (Choose two.)
- Configure a non-default device hostname using the 'hostname' commandAnswer
- Configure an IP domain name using the 'ip domain name' commandAnswer
- CEnable local authentication on the VTY lines using the 'login local' command
- DRestrict line protocol access using the 'transport input ssh' command under line vty
Answer
The correct prerequisites are configuring a non-default hostname and setting an IP domain name.
Generating RSA keys on Cisco IOS depends directly on having a fully qualified domain name (FQDN). The FQDN is formed by combining the device hostname and the configured IP domain name. Therefore, both setting a unique hostname and defining an IP domain name are mandatory prerequisites prior to issuing the RSA key generation command.
Step-by-Step Solution
Key Concept
Prerequisites for generating RSA key pairs for SSH remote access on Cisco IOS devices