Getting error - Could not open a connection to your authentication agent. After the command - ssh-add ~/{private_ssh_key}~
Hi @sayali_v and welcome to the community!
Based on the output, it looks like your SSH agent may not be running. Can you first try starting the SSH agent with the following command, and then try to add the private key?
eval $(ssh-agent)
To ensure that the correct SSH key is used when connecting to Bitbucket, update or create your SSH configuration file (~/.ssh/config) with the following settings:
Host bitbucket.org
AddKeysToAgent yes
IdentityFile ~/.ssh/{ssh-key-name}
Where {ssh-key-name} replace with the name of your private key, whose public key you have uploaded to Bitbucket.
You can check all the steps needed to set up SSH in one of the following guides, depending on the operating system of your computer:
Please feel free to reach out if you have any questions.
Kind regards,
Theodora
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.