nerdexam
CompTIA

LX0-104 · 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 starts a background program that holds private keys used for public key authentication, allowing them to be used without re-entering passphrases repeatedly during an SSH session.

Security

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

(37 responses)
  • A
    3% (1)
  • B
    89% (33)
  • C
    5% (2)
  • D
    3% (1)

Why each option

The `ssh-agent` command starts a background program that holds private keys used for public key authentication, allowing them to be used without re-entering passphrases repeatedly during an SSH session.

Asshd

`sshd` is the OpenSSH server daemon, responsible for listening for and handling incoming SSH connections.

Bssh-agentCorrect

`ssh-agent` is a program that runs in the background and stores private keys in memory, acting as an authentication agent. It makes these keys available to SSH clients for automatic authentication to remote servers without requiring the passphrase for each connection.

Cssh-keygen

`ssh-keygen` is used to generate, manage, and convert authentication keys for SSH.

Dssh-add

`ssh-add` is used to add identity (private key) files to the authentication agent (`ssh-agent`); it works in conjunction with `ssh-agent` but `ssh-agent` is the managing process.

Concept tested: SSH key management agent

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

Topics

#ssh-agent#SSH authentication#public key authentication

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice