Exam4Training

Which of the following commands can be used to copy a key file to remote servers?

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.)
A . wget
B . ssh-keygen
C . ssh-keyscan
D . ssh-copy-id
E . ftpd
F . scp

Answer: D, F

Explanation:

The commands ssh-copy-id and scp can be used to copy a key file to remote servers. The command ssh-copy-id copies the public key to the authorized_keys file on the remote server, which allows the user to log in without a password. The command scp copies files securely over SSH, which can be used to transfer the key file to any location on the remote server. The other options are incorrect because they are not related to copying key files. The command wget downloads files from the web, the command ssh-keygen generates key pairs, the command ssh-keyscan collects public keys from remote hosts, and the command ftpd is a FTP server daemon.

Reference: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 13: Managing Network Services, pages 408-410.

Latest XK0-005 Dumps Valid Version with 136 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Exit mobile version