LPI Exam Questions

Which environment variables are used by ssh-agent?

Which environment variables are used by ssh-agent? (Please select TWO variables)

A.
SSH_AGENT_KEY

B.
SSH_AGENT_SOCK

C.
SSH_AGENT_PID

D.
SSH_AUTH_SOCK

E.
SSH_AUTH_PID

Explanation:
A unix-domain socket is created and the name of this socket is stored in the SSH_AUTH_SOCK environment variable.
The socket is made accessible only to the current user.
This method is easily abused by root or  another instance of the same user.
The SSH_AGENT_PID environment variable holds the agent’s process ID.
The agent exits automatically when the command given on the command line  terminates.

Ref: http://www.cl.cam.ac.uk/cgi-bin/manpage?ssh-agent