At Thu, 24 Sep 2009 15:26:16 +0100 (BST), MJ Ray wrote:
Richard Lewis richardlewis@fastmail.co.uk wrote: [...]
The bit that I'm stuck with is starting ssh-agent properly. If I run urxvt, for example, under ssh-agent:
$ ssh-agent urxvt
I can't then run ssh-add, it says "Could not open a connection to your authentication agent." Although ps reports that the ssh-agent is running.
[...]
Any ideas why this isn't working?
Can you eval $(ssh-agent -s) and use it that way instead? I have that eval in my Xsession script. I don't remember why I don't use the subprocess method.
Ah OK. Yes, having resolved the first problem (in my reply to myself) I can do this now.
I've seen some muttering about the Gnome keyring tool (on planet.debian.org I think) and it's never worked right for me. It also seemed to interfere with ssh-agent. Is it running?
Hmm, yes gnome keyring is running. I think gdm uses it?
http://live.gnome.org/GnomeKeyring/Ssh seems to suggest that gnome keyring actually functions as an ssh agent.
I'll test later (next time I log in), but it could be that the SSH_* environment variable clobbering that I had going on was stopping gnome keyring's ssh agent facility from working.
On the other hand, my gnome-keyring process is called
/usr/bin/gnome-keyring-daemon --daemonize
so it doesn't seem to be a parent of fluxbox. I would've thought it needs to be.