CompTIA Linux+ (XK0-005) — Question 108
A new Linux systems administrator just generated a pair of SSH keys that should allow connection to the servers. Which of the following commands can be used to copy a key file to remote servers? (Choose two.)
Answer options
- A. wget
- B. ssh-keygen
- C. ssh-keyscan
- D. ssh-copy-id
- E. ftpd
- F. scp
Correct answer: D, F
Explanation
The correct commands for copying an SSH key to remote servers are 'ssh-copy-id' and 'scp'. 'ssh-copy-id' specifically installs the public key on the remote server, while 'scp' securely transfers files over SSH. The other options do not serve this purpose: 'wget' is for downloading files, 'ssh-keygen' generates keys, 'ssh-keyscan' retrieves public keys, and 'ftpd' is related to FTP services.