CompTIA Linux+ (XK0-004) — Question 208
Which of the following default files are typically used to contain a list of public keys from other computers? (Choose two.)
Answer options
- A. ~/.ssh/authorized_keys
- B. ~/.ssh/config
- C. ~/.ssh/id_dsa.pub
- D. ~/.ssh/known_hosts
- E. ~/.ssh/id_rsa
- F. ~/.ssh/id_rsa.pub
Correct answer: A, D
Explanation
The correct answers are A and D. The ~/.ssh/authorized_keys file is used to store public keys that are authorized to connect to the SSH server, while ~/.ssh/known_hosts contains the public keys of remote hosts the user has connected to. Options B, C, E, and F do not serve this purpose; for instance, ~/.ssh/config is used for SSH client configurations, and the keys in E and F are private and public key pairs, not lists of public keys from other computers.