Could not open connection to your authentication agent SSH-add?
You can just restart agent by eval ssh-agent -s and add older key using ssh-add ~/. ssh/id_rsa. If you generate new SSH key then you will need to update that key in all your services such as github, bitbucket, etc.
How do I use ssh-agent and SSH-add?
To use ssh-agent and ssh-add , follow the steps below:
- At the Unix prompt, enter: eval `ssh-agent` Make sure you use the backquote ( ` ), located under the tilde ( ~ ), rather than the single quote ( ‘ ).
- Enter the command: ssh-add.
- Enter your private key password.
- When you log out, enter the command: kill $SSH_AGENT_PID.
Why is my ssh add not connecting to my authentication agent?
You can also encounter this situation when SSH_AUTH_SOCK variable is not set and hence the ssh-add cannot contact an authentication agent. Verify first that ssh-agent is running on your system by running a command
How to open a connection to your authentication agent?
I got the same complain: “Could not open a connection to your authentication agent”. Then I realize there are two different kind of quotation on my computer’s keyboard. So I tried the one at the same position as “~”: $ eval ssh-agent -s $ ssh-add ~/.ssh/id_rsa And bang it worked. Downsides of using .bashrc with eval ssh-agent -s:
How to run ( Git / SSH ) authentication agent?
See the following answers: ssh-add complains: Could not open a connection to your authentication agent Git push requires username and password(contains detailed instructions on how to use ssh-agent) How to run (git/ssh) authentication agent?. Could not open a connection to your authentication agent
Why is my SSH not opening a connection?
[Fixed] SSH : could not open a connection to your authentication agent 1 SSH agent not running As per Github documentation, this is because the ssh-agent is not running in the background and… 2 SSH_AUTH_SOCK not set More