[pkg-gnupg-maint] Bug#854376: Unable to use gpg-agent as ssh-agent

Punit Agrawal punitagrawal at gmail.com
Mon Feb 6 16:35:32 UTC 2017


Not sure if it's related but gpg-agent stopped behaving as ssh
agent after updating the system today. On my machine, I have

% env | grep -i ssh
SSH_AUTH_SOCK=/run/user/1000/gnupg/S.gpg-agent.ssh

When trying to ssh, I run into

% ssh <remote-host>
sign_and_send_pubkey: signing failed: agent refused operation

"ssh-add -L" shows that the key that should be used to log into the remote.

On further digging, I landed at
/usr/lib/systemd/user/gpg-agent-ssh.socket which doesn't seem to
be explicitly enabling ssh support. But I'm not familiar with
systemd units so might've misunderstood what's going on.



More information about the pkg-gnupg-maint mailing list