Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Why I need to authenticate again with SSO to clone a new repo?

jose.paredes
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!
January 17, 2023

I have done my personal SSH keys on macOS settings. When I try to clone the repo in a new directory, I get the error:

git@bitbucket.org:Permission denied (publickey).
fatal: Could not read from remote repository

I thought my permissions was done once I configure the SSH key.

Thanks  

1 answer

1 accepted

0 votes
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 18, 2023

Hi @jose_paredes and welcome to the community.

Your ssh client may not be offering the key you have added to your Bitbucket Cloud account, or the key may not be loaded to your SSH agent.

Can you try adding the following in the ~/.ssh/config file on your macOS (if the file doesn't exist, you can create it):

Host bitbucket.org
HostName bitbucket.org
PreferredAuthentications publickey
IdentityFile /Users/User/.ssh/id_rsa

where /Users/User/.ssh/id_rsa replace with the path and name of your private SSH key, whose public key is uploaded to your Bitbucket account.

Afterwards, try cloning again, and feel free to let me know how it goes.

Kind regards,
Theodora

jose.paredes
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!
January 20, 2023

Thank you, @Theodora Boudale !

Yes, the key was neither generated nor enabled in my SSH agent. I had to use the command: 

ssh-keygen -t rsa

And then copy the key type in "Selected SSH kyes" of my repo.

 

Regards,

Jose

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events