[Bug 1631320] [NEW] systemd-user cannot connect to gpg-agent ssh-agent

Dimitri John Ledkov launchpad at surgut.co.uk
Fri Oct 7 10:20:19 UTC 2016


Public bug reported:

I am using gpg smartcard for ssh keys.

I have enable-ssh-agent specified in ~/.gnupg/gpg-agent.conf

Upon login, without smart card plugged in, I expect:

$ ssh-add -l
The agent has no identities.

Instead, I get:

$ ssh-add -l
Error connecting to agent: No such file or directory

It appears that gpg-agent in yakkety uses $XDG_RUNTIME_DIR/gnupg/ for
the ssh-agent socket, instead of $GHUPGHOME/.

** Affects: gnupg2 (Ubuntu)
     Importance: High
     Assignee: Dimitri John Ledkov (xnox)
         Status: Fix Committed

** Changed in: gnupg2 (Ubuntu)
   Importance: Undecided => High

** Changed in: gnupg2 (Ubuntu)
       Status: New => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gnupg2 in Ubuntu.
https://bugs.launchpad.net/bugs/1631320

Title:
  systemd-user cannot connect to gpg-agent ssh-agent

Status in gnupg2 package in Ubuntu:
  Fix Committed

Bug description:
  I am using gpg smartcard for ssh keys.

  I have enable-ssh-agent specified in ~/.gnupg/gpg-agent.conf

  Upon login, without smart card plugged in, I expect:

  $ ssh-add -l
  The agent has no identities.

  Instead, I get:

  $ ssh-add -l
  Error connecting to agent: No such file or directory

  It appears that gpg-agent in yakkety uses $XDG_RUNTIME_DIR/gnupg/ for
  the ssh-agent socket, instead of $GHUPGHOME/.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnupg2/+bug/1631320/+subscriptions



More information about the foundations-bugs mailing list