nerdexam
CompTIA

XK0-004 · Question #120

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?

The correct answer is D. ~/.ssh/authorized_keys. On the remote server, the public key must be copied to a file within the user's home directory at ~/. ssh/authorized_keys . This file contains a list of public keys, one per line, that are authorized to log into this account. clients-and-keys

Security

Question

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?

Options

  • A~/ssh/authorized-keys
  • B/etc/authorized_keys
  • C/etc/sshd/ssh.conf
  • D~/.ssh/authorized_keys

How the community answered

(14 responses)
  • B
    7% (1)
  • C
    7% (1)
  • D
    86% (12)

Explanation

On the remote server, the public key must be copied to a file within the user's home directory at ~/. ssh/authorized_keys . This file contains a list of public keys, one per line, that are authorized to log into this account. clients-and-keys

Topics

#SSH#authorized_keys#public key authentication#remote access

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice