nerdexam
CompTIA

XK0-004 · Question #372

Which of the following commands should a system administrator use to configure a passwordless login to remote system? (Select TWO.)

The correct answer is B. Ssh-agent C. Ssh-copy-id. Configuring passwordless SSH login involves two key tools. ssh-copy-id (C) is the primary command that copies a user's public SSH key to the remote server's ~/.ssh/authorized_keys file, which is what directly enables passwordless authentication - the remote server recognizes…

Security

Question

Which of the following commands should a system administrator use to configure a passwordless login to remote system? (Select TWO.)

Options

  • ACp
  • BSsh-agent
  • CSsh-copy-id
  • DSsh-keygen
  • ESsh-add
  • Fopenssl

How the community answered

(46 responses)
  • A
    2% (1)
  • B
    93% (43)
  • E
    4% (2)

Explanation

Configuring passwordless SSH login involves two key tools. ssh-copy-id (C) is the primary command that copies a user's public SSH key to the remote server's ~/.ssh/authorized_keys file, which is what directly enables passwordless authentication - the remote server recognizes the key and grants access without prompting for a password. ssh-agent (B) is a background daemon that holds decrypted private keys in memory, so that if keys are protected by a passphrase, users only need to enter it once per session rather than on every connection, effectively making logins 'passwordless' in practice. While ssh-keygen (D) generates the key pair and is a prerequisite step, the question focuses on the configuration of passwordless login itself. cp (A) and openssl (F) are unrelated to SSH key deployment. ssh-add (E) adds keys to a running ssh-agent but is a supporting tool, not the primary configuration command.

Topics

#SSH#passwordless authentication#ssh-copy-id#ssh-agent

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice