You are not logged in.

#1 2011-07-21 15:14:44

synthead
Member
Registered: 2006-05-09
Posts: 1,337

ssh-add: SSH_AGENT_FAILURE Could not add identity: .ssh/id_rsa

If I first run ...

ssh-agent /bin/bash

...I can unlock my private key and store it in memory just fine, but normally, this happens:

[max@killterm3 ~]$ ssh-add .ssh/id_rsa
Enter passphrase for .ssh/id_rsa:
SSH_AGENT_FAILURE
Could not add identity: .ssh/id_rsa

What's going on?  Should I file a bug report?

Offline

#2 2011-07-25 20:28:09

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: ssh-add: SSH_AGENT_FAILURE Could not add identity: .ssh/id_rsa

Any ideas?  This is really annoying hmm

Offline

#3 2011-07-26 18:47:12

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: ssh-add: SSH_AGENT_FAILURE Could not add identity: .ssh/id_rsa

Interesting, ssh-agent with no options dumps a small script.  If I run it, I can add keys.

Offline

#4 2011-07-26 18:55:07

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: ssh-add: SSH_AGENT_FAILURE Could not add identity: .ssh/id_rsa

Baah, fooled again!  Will be doing this when I am able to log out: https://wiki.archlinux.org/index.php/SSH_Keys#ssh-agent

Offline

#5 2011-07-26 19:02:47

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: ssh-add: SSH_AGENT_FAILURE Could not add identity: .ssh/id_rsa

Check my sig -- my .bashrc has the setup I use. I use keychain, which is basically just a wrapper around ssh-agent. Also, make sure your ssh permissions are correct. It's quite picky about other people not reading your keys!
Scott

Offline

#6 2011-07-26 20:33:57

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: ssh-add: SSH_AGENT_FAILURE Could not add identity: .ssh/id_rsa

firecat53 wrote:

Check my sig -- my .bashrc has the setup I use. I use keychain, which is basically just a wrapper around ssh-agent. Also, make sure your ssh permissions are correct. It's quite picky about other people not reading your keys!
Scott

Ahh, there we go.  I tried to ditch keychain, but I guess this is one of the useful features I needed back smile

eval "$(keychain -q --eval --agents ssh)"

This works nicely.  Doesn't bother me about anything, but enables "memory" for unlocked keys.  Thanks!!

Offline

#7 2011-07-26 21:08:34

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: ssh-add: SSH_AGENT_FAILURE Could not add identity: .ssh/id_rsa

Glad to help smile Make sure and edit your 1st post title to add [SOLVED].

Scott

Offline

Board footer

Powered by FluxBB