You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I have setup my personal account as a member of a workspace. I can browse the repos in the workspace within the browser. I also added an SSH key to my personal account. Running "ssh -v email@example.com" works and says something like "You can use git to connect to Bitbucket." But when I try to clone the repo I get the error "firstname.lastname@example.org: Permission denied (publickey)".
Accessing the same repo from another account (obviously with a different SSH key) works without any problem.
Do you have any ideas?
Welcome to the community.
To make sure your SSH key is in use, would it be possible for you to add it to your SSH agent?
eval $(ssh-agent) ssh-add <Private SSH key location>
Once done, try to clone again.
If the issue still persists, you can try to enforce your environment to use a specific SSH key identity by adding the configuration below in your SSH config file.
Host bitbucket.org HostName bitbucket.org IdentityFile <Private SSH key location>
If you don't have the SSH config file yet, you can create it first:
vim ~/.ssh/config chmod 600 ~/.ssh/config
Hope it helps and let me know how it goes.
Sorry for late answer, the move to bitbucket cloud has been postponed for some time. But now I'm ready to tackle it again.
Meanwhile I also found the problem. I had my .ssh folder in my Windows home folder, but git bash was using a different folder as home. After moving the keys there everything worked fine.