delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/03/10/13:39:42

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <20040310183806.63653.qmail@web40807.mail.yahoo.com>
Date: Wed, 10 Mar 2004 10:38:06 -0800 (PST)
From: Don Littlefield II <dblii AT yahoo DOT com>
Subject: Advice needed: Scheduled rsync via SSH with ssh-agent...
To: cygwin AT cygwin DOT com
MIME-Version: 1.0

Hi there folks,

I need some advice on how to do what I initially
thought would be a simply thing.

Basically, on a scheduled basis, I need to rsync some
files between hostA to hostB.

I have to make use of SSH for the connection which is
where my troubles are coming in.  As this process
needs to be automated and hands off, I need to make
the authentication happen automatically.

Interactively, I can run ssh-agent and then ssh-add to
get rsync to continue without a prompt.  However, as
this process needs to be scripted and work after
reboots with no fiddling...im in a bit of a rut.

I cannot see how I can get ssh-agent running as a
service. I've seen some posts from folks on this, but
I tried their methods to no avail.  While I do get
ssh-agent running as a service, the needed env
variables are not set and so ssh-add does not work.

Maybe there is some other workaround to this or there
is some better solution you folks can think of.  My
only other possibility is using a Perl script I wrote
using SCP to do the sync with Net::SCP::Expect..,
but...rsync is more robust and hence I would like to
stick with it.

Any ideas appreciated!

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019