nerdexam
CompTIA

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…

Security

Question

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 existing SSH key file?

Options

  • Apasswd
  • Bssh
  • Cssh-keygen
  • Dpwgen

How the community answered

(35 responses)
  • A
    3% (1)
  • B
    3% (1)
  • C
    86% (30)
  • D
    9% (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

#SSH Key Management#Security Best Practices#Command Line Interface#Passphrase

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice