LPIC-1 Exam 102 v5 (Linux Administrator) — Question 80
Which mechanism does ssh use to interact with the SSH agent?
Answer options
- A. Connecting to port 2222 which is used by the system-wide SSH agent.
- B. Using the fixed socket .ssh-agent/ipc.
- C. Creating an alias replacing ssh with calls to ssh-agent.
- D. Starting ssh-agent as a child process for each ssh invocation.
- E. Evaluating environment variables such as SSH_AUTH_SOCK.
Correct answer: E
Explanation
The correct answer is E because ssh checks the SSH_AUTH_SOCK environment variable to find the socket used to communicate with the SSH agent. The other options describe incorrect methods or processes that do not apply to how ssh interacts with the SSH agent.