Exam 102-500 Topic 7 Question 152 Discussion

Actual exam question for Lpi's 102-500 exam
Question #: 152
Topic #: 7
Which of the following commands preloads and manages keys that are used for automatic authentication while logging in to other machines using SSH?

Suggested Answer: B Vote an answer

The ssh-agent command is a program that runs in the background and acts as a key manager for SSH. It can store multiple private keys in memory and provide them to SSH clients when needed. This way, the user does not have to enter the passphrase for each key every time they log in to another machine using SSH. The ssh-agent can also forward the authentication request toanother agent running on the original machine, allowing the user to hop between different machines without re-entering the passphrase1.
To use ssh-agent, the user needs to start it and add the private keys to it using the ssh-add command. The ssh-add command can also list, delete, and lock the keys stored in the agent. Theuser can then use the SSH_AUTH_SOCK environment variable to connect to the agent and use the keys for authentication2.
The other commands are not related to the ssh-agent. The sshd command is the SSH server daemon that listens for incoming connections and handles the authentication and encryption. The ssh-keygen command is a tool for generating, managing, and converting SSH keys. The ssh command is the SSH client that initiates the connection to the remote machine3. References: 1: SSH Essentials: Working with SSH Servers, Clients, and Keys. 2: [ssh-agent(1) - Linux manual page]. 3: SSH command usage, options, and configuration in Linux/Unix.

by Clark at Jun 12, 2026, 02:41 PM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

0
0
0
10