Git clone of module asking for password even though key is accepted

Created on 16 August 2018, over 6 years ago
Updated 7 May 2023, over 1 year ago

***SOLVED ***

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.

+++++++++++++++++

I'm trying to switch the SSH keys as the password authentication is now deprecated and am having an issue.

I've created a new key pair and entered the public key in my account and set my Git Bash to use the private key.

However, when I try to check out one of my modules I get a password prompt and my Drupal.org PW does not work for it.

Running

ssh -v git@git.drupal.org

Says "Authentication succeeded (public key)" so I'm confused as to why the PW prompt is still coming up.

I'm using Git Bash on Windows.

Full output:

$ ssh -v git@git.drupal.org
OpenSSH_7.7p1, OpenSSL 1.0.2o  27 Mar 2018
debug1: Reading configuration data /c/Users/USERNAME/.ssh/config
debug1: /c/Users/USERNAME/.ssh/config line 1: Applying options for git.drupal.org
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to git.drupal.org [140.211.10.43] port 22.
debug1: Connection established.
debug1: identity file /c/Users/USERNAME/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/USERNAME/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/USERNAME/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/USERNAME/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/USERNAME/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/USERNAME/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/USERNAME/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/USERNAME/.ssh/id_ed25519-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/USERNAME/.ssh/id_xmss type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/USERNAME/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.7
debug1: Remote protocol version 2.0, remote software version Twisted
debug1: no match: Twisted
debug1: Authenticating to git.drupal.org:22 as 'git'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: diffie-hellman-group14-sha1
debug1: kex: host key algorithm: ssh-rsa
debug1: kex: server->client cipher: aes128-ctr MAC: hmac-sha2-256 compression: none
debug1: kex: client->server cipher: aes128-ctr MAC: hmac-sha2-256 compression: none
debug1: sending SSH2_MSG_KEXDH_INIT
debug1: expecting SSH2_MSG_KEXDH_REPLY
debug1: Server host key: ssh-rsa SHA256:Fbjx4sCN5lCL9NvqsQ6MA1SMGZmJrYxYeSblSFRIXi4
debug1: Host 'git.drupal.org' is known and matches the RSA host key.
debug1: Found key in /c/Users/USERNAME/.ssh/known_hosts:3
debug1: rekey after 4294967296 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 4294967296 blocks
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: password,publickey
debug1: Next authentication method: publickey
debug1: Offering public key: RSA SHA256:HZquXtl48xvNpXDDUuSjQW07ldKI1DAhhA75pJn1AdQ /c/Users/USERNAME/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 279
debug1: Authentication succeeded (publickey).
Authenticated to git.drupal.org ([140.211.10.43]:22).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: pledge: network
PTY allocation request failed on channel 0
shell request failed on channel 0
💬 Support request
Status

Fixed

Component

User interface

Created by

🇺🇸United States 3cwebdev

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇨🇦Canada Austin986

    @apaderno Can you explain how you solved this issue?

    Seems I have same problem here, like I can not push my code, always asking me to Sign In, but nothing of it will work.

  • 🇮🇹Italy apaderno Brescia, 🇮🇹

    @Austin986 3CWebDev, who created this support request, reported he resolved the issue he described.

    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.

Production build 0.71.5 2024