While I'm doing a clone, push or pull over SSH with Git, I received a message
Permission denied.
Can anyone help me out?
Hi @Kumkum Tadeja ,
Welcome to the community!
This can be caused by a couple of factors, but these are the most common:
To check to see if your public key is loaded into Bitbucket Cloud, do the following:
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
$ 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.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.