Page MenuHome GnuPG

gpg-agent doesn't accept passphrase
Closed, ResolvedPublic

Description

I encountered a strange problem according to the new GnuPG 2.0.14 and gpg-agent.
While using gpg-agent as a drop in replacement for ssh-agent gpg-agent always
complaines about a wrong passphrase after an initial ssh-add.

The specific steps I did:

  1. Installed gnupg2, setup gpg to "use-agent" and use gpg-agent with pinentry-curses
  2. Import all my gpg keys.
  3. Started gpg-agent with enable-ssh-support in daemon mode and set the env

variables accordingly.

  1. Did a ssh-add, unlocked my ssh-key and specified a new passphrase.
  2. Tried to ssh to my server, gpg-agent asked for the passphrase and complains

that I supplied a wrong one.

I tested this on three different computers. Since I got a working setup on my
desktop pc I copied the correct ~/.gnupg/private-keys-v1.d/.. file I created
with gnupg 2.0.13 to my laptop and voila, it worked.
Seems somethin is broken in the new passphrase method introduced in 2.0.14.

Best regards,
Oli

Details

Version
2.0.14

Event Timeline

b52 added projects: gnupg, Bug Report.
b52 added a subscriber: b52.

I am sorry about this. Please read
http://lists.gnupg.org/pipermail/gnupg-users/2010-January/038045.html

Is there a way for you to restore the old key using a backup?

Yep,
already fixed everything on my boxes.

werner claimed this task.