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.

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

Leave a reply

Your email address will not be published. Required fields are marked *

We are the voice of the universe, the soul of creation, the fire that will light our way to a better future. We are one.

— G’Kar