Re: How to automatically send password in rsync?

From: Alan Connor (zzzzzz_at_xxx.yyy)
Date: 10/07/04


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



Relevant Pages

  • Re: Remote registry
    ... I have AcvtiveSync on but when i run Remote Registry (or any other remote ... The KITL Bootstrap server reported: Unable to establish a connection with ... (if i select KITL for both Transport and Startup server). ... If i select 'ActiveSync' as Transport, ...
    (microsoft.public.windowsce.platbuilder)
  • SecurityFocus Microsoft Newsletter #152
    ... MICROSOFT VULNERABILITY SUMMARY ... Real Networks Helix Universal Server Remote Buffer Overflow ... ... NEW PRODUCTS FOR MICROSOFT PLATFORMS ...
    (Focus-Microsoft)
  • SecurityFocus Microsoft Newsletter #140
    ... Cafelog b2 Remote File Include Vulnerability ... Webfroot Shoutbox Remote Command Execution Vulnerability ... Pablo Software Solutions Baby POP3 Server Multiple Connection... ... Microsoft Windows XP Nested Directory Denial of Service... ...
    (Focus-Microsoft)
  • RE: SBS 2003 sudden services problem over router based vpn
    ... I understand that your remote cannot receive POP3 emails through VPN ... SBS Server through routers. ...
    (microsoft.public.windows.server.sbs)
  • RE: Download connection Manager through RWW
    ... the issue may occur due to the Remote VD is ... Then please rerun the CEICW wizard and Configure Remote access wizard ... Start Internet Explorer. ... Since the Symantec anti-virus application installed on the server, ...
    (microsoft.public.windows.server.sbs)

Loading