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
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)- B7% (1)
- C7% (1)
- D86% (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
Community Discussion
No community discussion yet for this question.