XK0-005 · Question #10590
During a security scan, the password of an SSH key file appeared to be too weak and was cracked. Which of the following commands would allow a user to choose a stronger password and set it on the…
The correct answer is C. ssh-keygen. The command that would allow a user to choose a stronger password and set it on the existing SSH key file is ssh-keygen -p -f <keyfile>. This command uses the ssh-keygen tool, which is used to generate, manage, and convert authentication keys for SSH. The -p option stands for…
Question
Options
- Apasswd
- Bssh
- Cssh-keygen
- Dpwgen
How the community answered
(35 responses)- A3% (1)
- B3% (1)
- C86% (30)
- D9% (3)
Explanation
The command that would allow a user to choose a stronger password and set it on the existing SSH key file is ssh-keygen -p -f <keyfile>. This command uses the ssh-keygen tool, which is used to generate, manage, and convert authentication keys for SSH. The -p option stands for passphrase, and it allows the user to change or remove the passphrase of an existing private key file. The -f option specifies the filename of the key file. The command will prompt the user for the old passphrase, and then for the new passphrase twice.
Topics
Community Discussion
No community discussion yet for this question.