102-500 · Question #183
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. ssh-agent is correct because it runs as a background process that holds decrypted private keys in memory, enabling automatic authentication to remote machines without re-entering passphrases for each connection during a session. Why the distractors are wrong: A. sshd - This is…
Question
Options
- Asshd
- Bssh-agent
- Cssh-keygen
- Dssh-add
How the community answered
(35 responses)- A6% (2)
- B77% (27)
- C11% (4)
- D6% (2)
Explanation
ssh-agent is correct because it runs as a background process that holds decrypted private keys in memory, enabling automatic authentication to remote machines without re-entering passphrases for each connection during a session.
Why the distractors are wrong:
- A. sshd - This is the SSH daemon (server-side process) that listens for incoming SSH connections; it has nothing to do with managing client-side keys.
- C. ssh-keygen - This generates SSH key pairs; it creates the keys but does not store or manage them for authentication sessions.
- D. ssh-add - This adds private keys to a running
ssh-agent; it's the loader, not the manager. The agent must already be running beforessh-addcan do anything.
Memory tip: Think of ssh-agent as the vault and ssh-add as the action of depositing keys into the vault. The vault (agent) is what actually handles authentication - you add keys to it, and it does the work automatically from then on.
Topics
Community Discussion
No community discussion yet for this question.