Fixing “Could not open a connection to your authentication agent”
If ssh-add complains that it cannot connect to your authentication agent, the agent simply is not running in your current shell. Two commands sort it out.
Start the agent
eval "$(ssh-agent -s)"
Add your key
ssh-add ~/.ssh/id_rsa
Now Git can use the key for clone and pull over SSH. If you use an Ed25519 key, swap id_rsa for id_ed25519.
Need a second pair of eyes on this? Our team handles web development every week. See how we can help.