LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Automated SCP/SSH using Keychain (https://www.linuxquestions.org/questions/linux-general-1/automated-scp-ssh-using-keychain-241711/)

gareth_western 10-12-2004 09:34 AM

Automated SCP/SSH using Keychain
 
Hiya,

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:
Code:

keychain ~/.ssh/id_dsa
I get this error message:
Code:

KeyChain 2.4.2.1; 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:
Code:

$ 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 ;-)

gareth_western 10-12-2004 09:43 AM

oops. Forgot that I didn't include the link to the automated-backups article I read... it can be found here:

www-106 dot ibm dot com/developerworks/library/l-backup/


All times are GMT -5. The time now is 04:15 AM.