CompTIA Linux+ (XK0-005) — Question 246
A systems administrator creates a public key for authentication. Which of the following tools is MOST suitable to use when uploading the key to the remote servers?
Answer options
- A. scp
- B. ssh-copy-id
- C. ssh-agent
- D. ssh-keyscan
Correct answer: B
Explanation
The correct answer, ssh-copy-id, is specifically designed for installing SSH keys on remote servers, making it the most suitable option. While scp can transfer files, it is not tailored for key installation. ssh-agent is used for managing private keys, and ssh-keyscan is for gathering SSH public keys from remote hosts, neither of which fulfills the key uploading function.