Which environment variables are used by ssh-agent?

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

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



Leave a Reply 2

Your email address will not be published. Required fields are marked *


walim

walim

right answer should be C and D: (man ssh-agent)

admin

admin

Yes, there are two environment vairables, SSH_AGENT_PID and SSH_AUTH_SOCK.
Thanks walim.

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.