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

Permission denied(public key)

Sumadhi Selvaraj
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!
October 6, 2022

Screenshot 2022-10-06 at 4.57.55 PM (1).pngScreenshot 2022-10-07 at 11.19.52 AM.png

2 answers

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 11, 2022

Hi @Sumadhi Selvaraj and welcome to the community.

If you have set up SSH keys for your Bitbucket Cloud account and you have access to the repo, then the private key may not be loaded into your SSH agent.

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

Host bitbucket.org
HostName bitbucket.org
User git
PreferredAuthentications publickey
IdentityFile /Users/myUser/.ssh/id_rsa
IdentitiesOnly yes

where /Users/myUser/.ssh/id_rsa replace with the path to your private SSH key that you use for Bitbucket Cloud and its name.

In case you have multiple Bitbucket accounts, you have set up SSH keys for each account and you want to use both from your computer, you will need to make a different configuration: https://blog.developer.atlassian.com/different-ssh-keys-multiple-bitbucket-accounts/ If you use only one Bitbucket account with SSH keys from this computer, you can ignore this last part.

Please feel free to let me know how it goes and if you're still experiencing any issues.

Kind regards,
Theodora

0 votes
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 7, 2022

Hi @Sumadhi Selvaraj ,

welcome to the Atlassian community!

Please ask to a your Project Admin to check if your user has the correct permission to write in that specific repo.

Hope this helps,

Fabio

Suggest an answer

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

Atlassian Community Events