You are not logged in.

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

synthead
Member
From: Seattle
Registered: 2006-05-09
Posts: 1,326

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?


Touch my kernel

Offline

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

synthead
Member
From: Seattle
Registered: 2006-05-09
Posts: 1,326

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

Any ideas?  This is really annoying hmm


Touch my kernel

Offline

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

synthead
Member
From: Seattle
Registered: 2006-05-09
Posts: 1,326

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.


Touch my kernel

Offline

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

synthead
Member
From: Seattle
Registered: 2006-05-09
Posts: 1,326

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


Touch my kernel

Offline

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

firecat53
Member
From: Sammamish, Wa
Registered: 2007-05-14
Posts: 1,448
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

Online

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

synthead
Member
From: Seattle
Registered: 2006-05-09
Posts: 1,326

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!!


Touch my kernel

Offline

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

firecat53
Member
From: Sammamish, Wa
Registered: 2007-05-14
Posts: 1,448
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

Online

Board footer

Powered by FluxBB