nerdexam
CompTIA

XK0-005 · Question #576

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?

The correct answer is B. ssh-copy-id. ssh-copy-id is purpose-built for uploading SSH public keys to remote servers. It handles the entire process: it identifies the correct public key, connects to the remote server, and appends the key to ~/.ssh/authorized_keys with proper file permissions (which is critical for…

System Management

Question

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?

Options

  • Ascp
  • Bssh-copy-id
  • Cssh-agent
  • Dssh-keyscan

How the community answered

(47 responses)
  • A
    2% (1)
  • B
    89% (42)
  • C
    2% (1)
  • D
    6% (3)

Explanation

ssh-copy-id is purpose-built for uploading SSH public keys to remote servers. It handles the entire process: it identifies the correct public key, connects to the remote server, and appends the key to ~/.ssh/authorized_keys with proper file permissions (which is critical for SSH to accept the key). Option A (scp) can copy files but does not handle the authorized_keys setup automatically and risks overwriting existing keys. Option C (ssh-agent) manages keys in memory for the current session but cannot upload keys to remote servers. Option D (ssh-keyscan) retrieves host public keys from remote servers (the opposite direction) and is used to populate known_hosts.

Topics

#SSH#Public Key Authentication#ssh-copy-id#Remote Server Management

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice