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

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.