nerdexam
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/authkeys is not a standard or recognized location for storing SSH public keys for authentication.
  • B. ~/.ssh/keys is not the standard filename for SSH public keys used for authentication; authorized_keys is the correct name.
  • D. ~/.ssh/keyauth is not a standard or recognized filename for SSH public keys used for authentication.

Concept tested. SSH key-based authentication, authorized_keys file

Reference. https://www.ssh.com/academy/ssh/authorized-keys

Topics

#SSH#Public Key Authentication#Linux File Paths#Security Configuration

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions