PrepAway - Latest Free Exam Questions & Answers

Which environment variables are used by ssh-agent?

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

PrepAway - Latest Free Exam Questions & Answers

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

2 Comments on “Which environment variables are used by ssh-agent?

    1. admin says:

      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.




      0



      0

Leave a Reply