nerdexam
CompTIA

LX0-104 · Question #533

Which of the following commands is used to hold keys during a login session to be used for automatic authentication while logging in to other machines using ssh?

The correct answer is B. ssh-agent. The ssh-agent command starts a background process that holds private keys in memory, enabling automatic authentication for subsequent SSH connections without repeatedly entering passphrases.

Security

Question

Which of the following commands is used to hold keys during a login session to be used for automatic authentication while logging in to other machines using ssh?

Options

  • Asshd
  • Bssh-agent
  • Cssh-keygen
  • Dssh-add

How the community answered

(17 responses)
  • B
    94% (16)
  • C
    6% (1)

Why each option

The `ssh-agent` command starts a background process that holds private keys in memory, enabling automatic authentication for subsequent SSH connections without repeatedly entering passphrases.

Asshd

`sshd` is the OpenSSH daemon, which listens for incoming SSH connections, not manages keys for outgoing connections.

Bssh-agentCorrect

`ssh-agent` is a program that manages private keys and makes them available to SSH clients, allowing users to unlock their private keys once per session and then use them for multiple SSH connections without re-entering the passphrase. It acts as an intermediary, providing authentication details securely.

Cssh-keygen

`ssh-keygen` is used to generate, manage, and convert authentication keys, not to hold them during a session.

Dssh-add

`ssh-add` is used to add private key identities to the authentication agent (`ssh-agent`), but `ssh-agent` itself is the program that holds the keys.

Concept tested: SSH key management with ssh-agent

Source: https://man7.org/linux/man-pages/man1/ssh-agent.1.html

Topics

#SSH#authentication#ssh-agent#key management

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice