CompTIA Linux+ (XK0-004) — Question 223

A junior Linux administrator needs to access production servers using a secure SSH protocol. Which of the following files should contain the public key to gain remote access to the server?

Answer options

Correct answer: D

Explanation

The correct answer is D, as the public key for SSH access should be stored in the user's home directory under the .ssh folder, specifically in the authorized_keys file. Option A is incorrect because of the wrong directory structure, option B is not valid as it does not pertain to user-specific access, and option C is not related to key storage at all.