publickey not working / falling back to password login on git@git.phonegap.com

  • 1
  • Problem
  • Updated 9 years ago
Hi there,

I'm trying to set this up for the first time and have a feeling I'm missing something incredibly basic, but after several hours, lots of Googling, and trying this on two PCs, maybe someone out there has a suggestion.

What's happening is that whenever I try to connect to the git@git.phonegap.com it asks for a password. Here's the relevant debug output:

debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /c/Users/haighb/.ssh/identity
debug3: no such identity: /c/Users/haighb/.ssh/identity
debug1: Offering public key: /c/Users/haighb/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password
debug1: Offering public key: /c/Users/haighb/.ssh/id_dsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
git@git.phonegap.com's password:

I've tried regenerating keys several times. I'm on Windows 7 using the latest build of msysgit. I get the same error on the other computer when I try to set it up as well (same OS).

Any thoughts? Thanks in advance,
Brian
Photo of haighb

haighb

  • 3 Posts
  • 0 Reply Likes

Posted 9 years ago

  • 1
Photo of Andrew Lunny

Andrew Lunny

  • 1911 Posts
  • 199 Reply Likes
What's your username on your PhoneGap Build account?

I'll check out our git hosting server (gitolite) and see why your public key isn't being recognized - we've been having a few issues, and I assume it's related to that.
Photo of haighb

haighb

  • 3 Posts
  • 0 Reply Likes
Username is haighb (same as here, keep it simple I always say)...

Thanks for looking into it...and no offense, fingers crossed it's on your server and not something incredibly daft that's been sitting right in front of me all this time. :) :)

Brian
Photo of haighb

haighb

  • 3 Posts
  • 0 Reply Likes
Well, whatever it is you did, that seemed to fix it. I'm able to use the publickey and everything's now proceeding.

Thanks so much for the assistance...now I'm looking forward to running this through its paces!
Photo of Andrew Lunny

Andrew Lunny

  • 1911 Posts
  • 199 Reply Likes
Yeah I switched the default on the server so that the git user couldn't use password auth - I guess whatever client you were using preferred that to public key auth.

Glad it's working now.