Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

public key issue

While I'm doing a clone, push or pull over SSH with Git, I received a message

Permission denied.

Can anyone help me out?


1 answer

1 accepted

5 votes
Answer accepted

Hi @Kumkum Tadeja ,

Welcome to the community!

This can be caused by a couple of factors, but these are the most common:

- Your public key isn't loaded into Bitbucket Cloud

To check to see if your public key is loaded into Bitbucket Cloud, do the following:

  1. Open a browser and log into Bitbucket Cloud.
  2. Choose Your avatar > Bitbucket settings from the menu bar.

    The system displays the Account settings page.
  3. Click SSH keys in the Security section.
    The SSH Keys page displays. It shows a list of any existing keys.
  4. If you do not have any keys listed, follow Set up an SSH key to set one up.

- Your identity isn't loaded into your SSH Agent

If your SSH agent doesn't know to offer Bitbucket Cloud a key, the connection will fail. To find out what keys your SSH Agent currently is offering, and add them, do the following:


Double-click Pageant to view loaded keys (Pageant is a PuTTY authentication agent).

Click 'Add Key' to add any key not found in the list

On GitBash, OSX or Linux

$ ssh-add -l

Then, if you don't see your key listed, add it by 

ssh-add ~/.ssh/identity

For more information, check out our full Troubleshoot SSH issues guide.

- You do not have permission to create the repository on your local filesystem

If you get the error "Permission denied", it is also possible that git or mercurial doesn't have permission to create the project folder locally. Check permissions for the directory where you're attempting to check out the project, and make sure you have write access.

Hey thanks it worked!

Like Soumyadeep Mandal likes this

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Calling any interview participants for Bitbucket Data Center

Hi everyone,  We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...

514 views 6 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you