nerdexam
Linux_Foundation

LFCS · Question #80

Which of the following commands preloads and manages keys that are used for automatic authentication while logging in to other machines using SSH?

The correct answer is B. ssh-agent. The ssh-agent command runs a background program that holds private keys used for public key authentication, allowing users to authenticate without re-entering passphrases.

Submitted by fatima_kr· Apr 18, 2026Networking

Question

Which of the following commands preloads and manages keys that are used for automatic authentication while logging in to other machines using SSH?

Options

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

How the community answered

(40 responses)
  • A
    3% (1)
  • B
    95% (38)
  • D
    3% (1)

Why each option

The `ssh-agent` command runs a background program that holds private keys used for public key authentication, allowing users to authenticate without re-entering passphrases.

Asshd

`sshd` is the OpenSSH server daemon that listens for incoming SSH connections, not a client-side tool for managing authentication keys.

Bssh-agentCorrect

The `ssh-agent` is a background program that stores private keys in memory, allowing them to be used for SSH authentication multiple times during a session without repeatedly prompting for their passphrases.

Cssh-keygen

`ssh-keygen` is used to generate, manage, and convert authentication keys for SSH, but it does not preload or manage them for a running session.

Dssh-add

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

Concept tested: SSH key management (agent)

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

Topics

#SSH#Authentication#Key Management

Community Discussion

No community discussion yet for this question.

Full LFCS Practice