rsync/ssh passwords

John Abreau jabr at blu.org
Tue Mar 30 13:59:36 EST 2004


On Sun, 2004-03-28 at 11:34, John Chambers wrote:

> I've been using rsync to backup/mirror files on several machines.   I
> usually  call  rsync from any of several scripts, which does the same
> command with different hostnames.  I use ssh
> 
> The problem is that, after it's churned for a while copying files  to
> or  from host1, it proceeds to host2, which then asks for a password.
> Usually I'm looking at some other  window  at  the  time,  and  don't
> notice  for a while that the rsync window wants another password.  By
> the time I notice it, host2 has already times out the  operation.   I
> don't  see  any clue of this, of course, so I type the password - and
> get an error message. That part of the rsyc process has now bombed.

I use a DSA key. I start ssh-agent with its output redirected into 
a file with chmod 0600, and then source that file from any shell 
scripts that need it. I find it works great for cron jobs that need 
to use ssh. 

I basically start that instance of ssh-agent by hand whenever I have 
to reboot the machine, and then leave it running until the next reboot. 

-- 
John Abreau / Executive Director, Boston Linux & Unix
Email jabr at blu.org / WWW http://www.abreau.net / PGP-Key-ID 0xD5C7B5D9
PGP-Key-Fingerprint 72 FB 39 4F 3C 3B D6 5B E0 C8 5A 6E F1 2C BE 99

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 307 bytes
Desc: This is a digitally signed message part
URL: <http://lists.blu.org/pipermail/discuss/attachments/20040330/0994c357/attachment.sig>


More information about the Discuss mailing list