nerdexam
CompTIA

XK0-005 · Question #892

A user test has set up SSH keys for passwordless authentication, but the server is still prompting for a password. Given the following output: Which of the following is the cause of this issue?

The correct answer is D. The user forgot to add the public key to the authorited_keys file. The empty authorized_keys (0 bytes) means SSH has no public key to match, so it falls back to password authentication. Copying id_rsa.pub into ~/.ssh/authorized_keys will resolve the issue.

Troubleshooting

Question

A user test has set up SSH keys for passwordless authentication, but the server is still prompting for a password. Given the following output:

Which of the following is the cause of this issue?

Options

  • AThe RSA key does not meet the complexity requirements.
  • BThe passphrase needs to be provided when creating the key.
  • CThe wrong permissions are set on id_rsa file.
  • DThe user forgot to add the public key to the authorited_keys file.

How the community answered

(24 responses)
  • A
    4% (1)
  • B
    8% (2)
  • C
    13% (3)
  • D
    75% (18)

Explanation

The empty authorized_keys (0 bytes) means SSH has no public key to match, so it falls back to password authentication. Copying id_rsa.pub into ~/.ssh/authorized_keys will resolve the issue.

Topics

#SSH#Key-based authentication#Troubleshooting#authorized_keys

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice