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.
Question
Options
- Asshd
- Bssh-agent
- Cssh-keygen
- Dssh-add
How the community answered
(37 responses)- A3% (1)
- B89% (33)
- C5% (2)
- D3% (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.
`sshd` is the OpenSSH server daemon, responsible for listening for and handling incoming SSH connections.
`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.
`ssh-keygen` is used to generate, manage, and convert authentication keys for SSH.
`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
Community Discussion
No community discussion yet for this question.