I'm trying to setup an automated backup process, using SCP to transfer a file from our build machine to another server. I've gone through this article and, up to the part about keychain, everything is working perfectly.
I'm now trying to include keychain in the process to save me from having to type in the public passphrase to initialise the SCP process, however every time I run the following:
I get this error message:
KeyChain 188.8.131.52; www dot gentoo dot org/projects/keychain
Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL
* Initializing ~/.keychain/$HOSTNAME-sh file...
* Initializing ~/.keychain/$HOSTNAME-csh file...
* Starting ssh-agent
* Adding 1 ssh key(s)...
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
(gnome-ssh-askpass:7743): Gtk-WARNING **: cannot open display:
* Error: Problem adding; giving up
Furthermore, now whenever I try to manually add a passphrase to the listening SSH-Agent process (which IS started and left running by the keychain script) I get this message:
$ ssh-add -l
Could not open a connection to your authentication agent.
I'm trying this in Fedora (Core 2) and OpenSSH_3.6.1p2, SSH protocols 1.5/2.0
Does anyone know why I wouldn't be able to use the ssh-agent process??
NOTE: I've deliberately censored ~ and $HOSTNAME
PS not being able to post URLs until 5 posts is VERY annoying, but I understand the necessity ;-)