Contents
Could not open a connection to your authentication agent on 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.
What is SSH-add?
ssh-add is a command for adding SSH private keys into the SSH authentication agent for implementing single sign-on with SSH. The agent process is called ssh-agent; see that page to see how to run it.
How do I know if Windows is ssh enabled?
You can verify that your Windows 10 version has it enabled by opening Windows Settings and navigating to Apps > Optional features and verifying that Open SSH Client is shown. If it is not installed, you may be able to do so by clicking Add a feature.
What does ” could not open a connection to your authentication agent ” mean?
If you get same “Could not open a connection to your authentication agent.” error, that means something is messed up with ssh-agent inside VM. Then, if that’s the problem, you can try eval ssh-agent -s“ inside of the VM and then run hodor from your host.
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
Why does my SSH say ” could not open a connection “?
Fix: Could not open a connection to your authentication agent. You might get an error that reads “could not open a connection to your authentication agent” when you try and add a key passphrase by using the ssh-add command. This particular problem is usually caused by the ssh-agent not getting correctly assigned,
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