LPIC-2 Exam 202 (Linux Engineer) — Question 1
The content of which local file has to be transmitted to a remote SSH server in order to be able to log into the remote server using SSH keys?
Answer options
- A. ~/.ssh/authorized_keys
- B. ~/.ssh/config
- C. ~/.ssh/id_rsa.pub
- D. ~/.ssh/id_rsa
- E. ~./ssh/known_hosts
Correct answer: C
Explanation
The correct answer is C, as the ~/.ssh/id_rsa.pub file contains the public key that needs to be added to the remote server's authorized_keys file to allow SSH access. The other options are either configuration files or contain private keys, which should not be shared for security reasons.