LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 10-12-2004, 09:34 AM   #1
gareth_western
LQ Newbie
 
Registered: Oct 2004
Posts: 9

Rep: Reputation: 0
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 ;-)
 
Old 10-12-2004, 09:43 AM   #2
gareth_western
LQ Newbie
 
Registered: Oct 2004
Posts: 9

Original Poster
Rep: Reputation: 0
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/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automated scp - needs paraphrase-less login? michaelsanford Linux - Networking 3 07-21-2005 12:14 AM
SSH/keychain problem(?) tpe Suse/Novell 0 05-16-2005 05:21 AM
ssh-agent/keychain problems Killbot_5000 Linux - Security 1 09-18-2004 02:33 AM
Keychain ssh problem (bug????) pcwulf Linux - Security 3 11-27-2003 10:55 PM
sh script in 'keychain' ssh program pcwulf Linux - Software 0 11-27-2003 08:16 PM


All times are GMT -5. The time now is 07:18 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration