350-701 · Question #431
An engineer is configuring device-hardening on a router in order to prevent credentials from being seen if the router configuration was compromised. Which command should be used?
The correct answer is A. service password-encryption. To prevent cleartext passwords from being visible in a router's configuration, the service password-encryption command should be used to encrypt them.
Question
An engineer is configuring device-hardening on a router in order to prevent credentials from being seen if the router configuration was compromised. Which command should be used?
Options
- Aservice password-encryption
- Busername <username> privilege 15 password <password>
- Cservice password-recovery
- Dusername < username> password <password>
How the community answered
(33 responses)- A91% (30)
- B3% (1)
- D6% (2)
Why each option
To prevent cleartext passwords from being visible in a router's configuration, the `service password-encryption` command should be used to encrypt them.
The `service password-encryption` command encrypts all unencrypted passwords in the running and startup configurations, using a weak type 7 encryption, making them unreadable to casual observers and protecting against accidental disclosure if the configuration is viewed. This command specifically obfuscates locally configured passwords, such as those for VTY lines or console access.
This command creates a username with a specified privilege level and password, but it does not encrypt existing or future passwords in the configuration.
`service password-recovery` enables or disables the password recovery mechanism, which is unrelated to encrypting passwords within the configuration itself.
This command creates a username and password, but without `service password-encryption` enabled, the password will be stored in cleartext.
Concept tested: Cisco router password encryption
Source: https://www.cisco.com/c/en/us/td/docs/ios/security/security_management/configuration/guide/sec_secure_mgmt.html
Topics
Community Discussion
No community discussion yet for this question.