Re: How to automatically send password in rsync?
From: Alan Connor (zzzzzz_at_xxx.yyy)
Date: 10/07/04
- Next message: GreyGeek: "Re: Locking up linux so it can be equal or safer to Windows."
- Previous message: Rob Young: "Re: Tel. Co. Sys. Op.?"
- In reply to: D. Alvarado: "How to automatically send password in rsync?"
- Next in thread: Lawrence DčOliveiro: "Re: How to automatically send password in rsync?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 07 Oct 2004 01:07:21 GMT
On 6 Oct 2004 17:46:25 -0700, D. Alvarado
<laredotornado@zipmail.com> wrote:
> Hi, I am trying to write a simple shell script that
> syncrhonize a directory on my local Fedora Core 2 box with
> another on a remote server. However, even though I use the
> "--password-file" option for rsync, I am still prompted for a
> password that I must manually enter.
>
> An example of a command I use right now is ...
>
> rsync -uav --password-file=/home/dave/password
> /usr/local/apache/htdocs/dev/
> mylogin@remote.host.com:/u/content/http/remote/dev
>
> And as I mentioned, I am prompted for a password.
>
> Why is the "--password-file" command falling short?
>
> Thanks, - Dave
>From the manpage:
--password-file
This option allows you to provide a password in a file for
accessing a remote rsync server. Note that this option
is only useful when accessing a rsync server using the
built in transport, not when using a remote shell as the
transport. The file must not be world readable. It should
contain just the password as a single line.
RSYNC_PASSWORD
Setting RSYNC_PASSWORD to the required password allows you to
run authenticated rsync connections to a rsync daemon without
user intervention. Note that this does not supply a password
to a shell transport such as ssh.
Perhaps the file's permissions are wrong? Are you using ssh?
Have you tried rsync -vvv > file?
AC
- Next message: GreyGeek: "Re: Locking up linux so it can be equal or safer to Windows."
- Previous message: Rob Young: "Re: Tel. Co. Sys. Op.?"
- In reply to: D. Alvarado: "How to automatically send password in rsync?"
- Next in thread: Lawrence DčOliveiro: "Re: How to automatically send password in rsync?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|