CompTIA Linux+ (XK0-005) — Question 88
A systems administrator is tasked with setting up key-based SSH authentication. In which of the following locations should the administrator place the public keys for the server?
Answer options
- A. ~/.sshd/authkeys
- B. ~/.ssh/keys
- C. ~/.ssh/authorized_keys
- D. ~/.ssh/keyauth
Correct answer: C
Explanation
The correct answer is C, as the public keys must be placed in the ~/.ssh/authorized_keys file for SSH to recognize and authenticate them. The other options are incorrect because they refer to non-standard directories or filenames that do not serve the purpose of storing authorized keys for SSH access.