Bitbucket Permission Denied Solution

I ran into a problem with Bitbucket recently and it took a bit of trial and error to work out a solution so I thought I’d share it to help save any other programmers from smashing their heads into their keyboards!  If you are using a Bitbucket Git repo on Windows with submodules and an SSH key and you run into a “Permission Denied (publickey)” error after running:

git clone --recursive git@bitbucket.org:your-account/your-repo-name.git

The solution is pretty simple.  Regenerate your SSH key WITHOUT a passphrase.  It seems to be a Windows issue with passing the auth details to the submodule clone commands.

Share Article

Comments: None so far...be the first!

Leave a reply

Please fill in the form fields and improve Skynet by completing the captcha!

Thank you! All comments are moderated so yours will appear shortly.

You followed your continuance in the hope that others would follow theirs. You didn’t do it for a reward or a pat on the head. The universe never tells us if we did right or wrong. It’s more important to try to help people than to know that you did. More important that someone else’s life gets better than for you to feel good about yourself. You never know the effect you might have on someone, not really. Maybe one cool thing you said haunts them forever, maybe one moment of kindness gives them comfort, or courage. Maybe you said the one thing they needed to hear. It doesn’t matter if you never know, you just have to try.

— Naomi Nagata, The Expanse