Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How is SSH_AUTH_SOCK setup and used by ssh-agent?

People also ask

What is SSH_AUTH_SOCK?

SSH_Auth_Sock is used by OpenSSH for passwordless (key based) authentication. It is my supposition that the files pointed to in those profile settings contain temporary data about the services that use them.

What does eval $( ssh-agent do?

The eval command tells the shell to run the output of ssh-agent as shell commands; thereafter, processes run by this shell inherit the environment variables and have access to the agent.


From here:

$SSH_AUTH_SOCK contains the path of the unix file socket that the agent uses for communication with other processes. This is essential for ssh-add.