CCNA: Cisco Certified Network Associate — Question 665
Refer to the exhibit. Which minimum configuration items are needed to enable Secure Shell version 2 access to R15?
Answer options
- A. Router(config)#hostname R15 - R15(config)#ip domain-name cisco.com R15(config)#crypto key generate rsa general-keys modulus 1024 R15(config)#ip ssh version 2 - R15(config-line)#line vty 0 15 - R15(config-line)# transport input ssh
- B. Router(config)#crypto key generate rsa general-keys modulus 1024 Router(config)#ip ssh version 2 - Router(config-line)#line vty 015 Router(config-line)# transport input ssh Router(contig)#ip ssh logging events R15(config)#ip ssh stricthostkeycheck
- C. Router(config)#hostname R15 - R15(config)#crypto key generate rsa general-keys modulus 1024 R15(config-line)#line vty 0 15 - R15(config-line)# transport input ssh R15(config)#ip ssh source-interface Fa0/0 R15(config)#ip ssh stricthostkeycheck
- D. Router(config)#ip domain-name cisco.com Router(config)#crypto key generate rsa general-keys modulus 1024 Router(contig)#ip ssh version 2 - Router(config-line)#line vty 0 15 Router(config-line)# transport input all Router(config)#ip ssh logging events
Correct answer: A
Explanation
Option A is correct because it includes all necessary steps to configure SSH version 2, including setting the hostname, domain name, generating RSA keys, and configuring the vty lines for SSH access. The other options either lack the hostname and domain name configuration or include unnecessary commands that do not contribute to enabling SSH version 2 access.