Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

getting error while creating ssh key

sayali_v
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 4, 2023

Getting error - Could not open a connection to your authentication agent. After the command -  ssh-add ~/{private_ssh_key}~

 

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 5, 2023

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events