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.
Question
Options
- Asshd
- Bssh-agent
- Cssh-keygen
- Dssh-add
How the community answered
(17 responses)- B94% (16)
- C6% (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.
`sshd` is the OpenSSH daemon, which listens for incoming SSH connections, not manages keys for outgoing connections.
`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.
`ssh-keygen` is used to generate, manage, and convert authentication keys, not to hold them during a session.
`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
Community Discussion
No community discussion yet for this question.