CompTIACompTIA
XK0-005 · Question #1482
XK0-005 Question #1482: Real Exam Question with Answer & Explanation
The correct answer is C: ~/.ssh/authorized_keys. For key-based SSH authentication, the public key of the client must be placed in the ~/.ssh/authorized_keys file within the user's home directory on the server.
Security
Question
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?
Options
- A~/.sshd/authkeys
- B~/.ssh/keys
- C~/.ssh/authorized_keys
- D~/.ssh/keyauth
Explanation
For key-based SSH authentication, the public key of the client must be placed in the ~/.ssh/authorized_keys file within the user's home directory on the server.
Common mistakes.
- A.
~/.sshd/authkeysis not a standard or recognized location for storing SSH public keys for authentication. - B.
~/.ssh/keysis not the standard filename for SSH public keys used for authentication;authorized_keysis the correct name. - D.
~/.ssh/keyauthis not a standard or recognized filename for SSH public keys used for authentication.
Concept tested. SSH key-based authentication, authorized_keys file
Topics
#SSH#Public Key Authentication#Linux File Paths#Security Configuration
Community Discussion
No community discussion yet for this question.