You are not logged in.

#1 2011-04-16 06:15:40

tlvince
Member
Registered: 2010-07-06
Posts: 68
Website

[SOLVED] ssh-add with gpg-agent returns SSH_AGENT_FAILURE

I'm using gpg-agent with SSH support: when I try "ssh-add", it returns SSH_AGENT_FAILURE:

$ ssh-add
Enter passphrase for ~/.ssh/id_rsa: 
SSH_AGENT_FAILURE
Could not add identity: ~/.ssh/id_rsa

gpg-agent is launched as described in the wiki (gpg-agent --enable-ssh-support --daemon) and the environment variables are being set correctly:

GPG_AGENT_INFO=/tmp/gpg-z0G4d8/S.gpg-agent:3011:1
SSH_AUTH_SOCK=/tmp/gpg-7f1gk4/S.gpg-agent.ssh
SSH_AGENT_PID=3020

The agent is functioning fine for gpg keys, just failing for SSH. Any ideas?

Last edited by tlvince (2011-05-18 15:06:21)

Offline

#2 2011-05-18 15:05:56

tlvince
Member
Registered: 2010-07-06
Posts: 68
Website

Re: [SOLVED] ssh-add with gpg-agent returns SSH_AGENT_FAILURE

Since there's little documentation, rather anticlimactically, I solved this by recreating ~/gnupg (export all keys first).

Last edited by tlvince (2011-05-18 15:07:04)

Offline

Board footer

Powered by FluxBB