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

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.