I'm trying to switch to SSH keys as the password authentication is now deprecated and I am having an issue. I've created a new key pair and entered the public key in my account and setup my Git Bash to use the private key.

When I try to clone one of my projects, I get a password prompt asking for "[email protected]' password.

However, when I run ssh [email protected] -v, it asks for my private key password and the output log says that I was authenticated.

debug1: Authentication succeeded (publickey).
Authenticated to git.drupal.org ([]:22).

Why does the above appear to authenticate but running something like the following does not?

git clone --branch 8.x-1.x [email protected]:project/MY_PROJECT.git

EDIT: I'm using Git Bash on Windows.

  • Is it using the right identity file? You said you created a new one.
    – Kevin
    Aug 17, 2018 at 16:59
  • Yes. I only have one key pair in use. Plus "ssh git@ git.drupal.org -v" says my key is found and prompts for my key password. But using the git clone command does not ask for my key password, but rather asks for [email protected]'s password. Aug 17, 2018 at 18:00

1 Answer 1


I was finally able to solve the issue by removing all git programs from my computer and then reinstalling only Git (bash). I think Tortoise Git was interfering somehow and causing the issue.

After removals and clean install, my clone worked right away. Simple.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.