nerdexam
CompTIACompTIA

XK0-005 · Question #576

XK0-005 Question #576: Real Exam Question with Answer & Explanation

The correct answer is B: ssh-copy-id. {"question_number": 8, "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?", "correct_answer": "B", "explanation": "ssh-copy-id is purpose-built for upload

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

Explanation

{"question_number": 8, "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?", "correct_answer": "B", "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.", "generated_by": "claude-sonnet", "llm_judge_score": 4}

Topics

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

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions