CompTIACompTIA
XK0-005 · Question #1887
XK0-005 Question #1887: Real Exam Question with Answer & Explanation
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.
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#Public Key Authentication#authorized_keys#Authentication Failure
Community Discussion
No community discussion yet for this question.