Re: rsync won't stop password prompt
michael_at_etalon.net
Date: 08/19/05
- Previous message: Niklas Schönberg: "Re: rsync won't stop password prompt"
- In reply to: Rob Brenart: "rsync won't stop password prompt"
- Next in thread: Bob Proulx: "Re: rsync won't stop password prompt"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 18 Aug 2005 16:02:36 -0700 To: debian-user@lists.debian.org
Quoting Rob Brenart <debian@oculardata.com>:
> I'm trying to script an rsync process and I keep getting the password
> prompt... here's my "script"
>
> rsync -avz -e /usr/bin/ssh --password-file=/home/username/pwd.rsync
> /home/user/test/ host:/home/username/test
>
> And it works fine, but it prompts me for a password even though I'm
> using --password-file
>
> I also tried putting
> export RSYNC_PASSWORD=pwd
>
> but that didn't have an effect either.
>
> Any help?
You may want to try using rsync with ssh.
I think the sarge version of rsync will automatically use ssh.
The key to ssh, rsync and no passwords is to have manually generated
ssh keys with a blank password. That way, when you ssh to another host,
it just logs in.
Combine it with rsync and away you go.
A simple command like:
# rsync -a host:/foo/ /foo/bar/
should work fine with ssh.
Check the ssh man page for more info on creating custom keys if you
haven't been down that way before.
Cheers,
Mike
-- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
- Previous message: Niklas Schönberg: "Re: rsync won't stop password prompt"
- In reply to: Rob Brenart: "rsync won't stop password prompt"
- Next in thread: Bob Proulx: "Re: rsync won't stop password prompt"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|