Permission denied when attempting to clone Repository via SSH

jace April 5, 2023

When attempting to clone this repo onto a Linux machine I get the following error:

"Cloning into '/{repo_name}'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists."


But, when I run the command "$ssh -T git@bitbucket.org", I get the following output:

"authenticated via ssh key.

You can use git to connect to Bitbucket. Shell access is disabled"

The ssh agent is running, the private key is added to the agent. Any help would be much appreciated, I am stuck on this and have been for several days. Thanks in advance!

1 answer

1 accepted

1 vote
Answer accepted
Daniel
Contributor
April 6, 2023

I'm sure you have, but did you by chance try these common issues and fixes here? https://confluence.atlassian.com/bbkb/permission-denied-publickey-302811860.html

jace April 7, 2023

Ended up being a permissions issue, silly on my part. But this checklist was exactly what I needed. Thank you!

Like Nicolas Grossi likes this

Suggest an answer

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

Atlassian Community Events