take a look at the ssh-agent howto
http://www.snailbook.com/faq/no-passphrase.auto.html

You will need to be running ssh-agent in the background and should definitely
generate a separate key exclusively for this purpose

having ssh-agent running will mean that you will need to type in th
passphrase at reboot
(if you are launching it at boot)

if you don't want to bother with ssh-agent you can use a plaintext
key-file but you should make
sure that that key is not going to be able to do anything besides rsync files.


On Thu, 22 Jul 2004 18:53:30 +0000, Bob Crandell <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I'm trying to automate backing up from one computer to another with rsync.  So
> far I can push the data, except it prompts for a password.  What do I do to
> make it unattended?
> 
> Second, I would like to pull that data, if I have a choice.
> 
> Here is the script that would work if it didn't ask for a password:
> #!/bin/sh
> 
> /usr/bin/rsync -gHlportu --rsh="ssh -l admin" /etc/*
> [EMAIL PROTECTED]:/mnt/Backup/Filter/etc/
> 
using ssh-agent or a key file would change this to -rsh="ssh [EMAIL PROTECTED]"

> This script times out instead of pulling the data:
> #!/bin/sh
> 
> /usr/bin/rsync -gHlportu filter:/home/* /mnt/Backup/Filter/home/

try
/usr/bin/rsync -gHlportu -e ssh [EMAIL PROTECTED]:/home/* /mnt/Backup/Filter/home/


-- 
http://Zoneverte.org -- information explained
Do you know what your IT infrastructure does?
_______________________________________________
EUGLUG mailing list
[EMAIL PROTECTED]
http://www.euglug.org/mailman/listinfo/euglug

Reply via email to