A router has a hostname set and SSH-capable IOS, but the command crypto key generate rsa fails with an error. An engineer has not yet configured a domain name. Which command should be entered first?
Show the answer
Correct answerC. ip domain-name lab.example.com
AWhy not this: This creates a local user for login but has no effect on whether RSA keys can be generated.
BWhy not this: This restricts VTY lines to SSH but does not provide the domain name needed for key generation.
CWhy this is right: The key pair name is built from hostname and domain name, so the domain name must exist before keys are generated.
DWhy not this: This selects SSH version 2 but needs an existing RSA key pair; it does not fix the key generation error.
RSA key generation needs a fully qualified name made from the hostname plus a domain name, so ip domain-name must be set first. The transport input ssh command only limits the VTY protocols and does not supply the domain name the key requires.