Password authentication in a script
mailinglisten at berndhaug.net
Mon Sep 30 12:57:00 EST 2002
> Here is my rsyncd.conf file:
> auth users=rsync
> secrets file=/etc/rsyncd.secret
So, the Daemon would ask you for the passwd in the secrets file, if
you *were to connect* to it - which you IMO aren't.
The rsync.secret passwords table is only responsible if you access the
rsync [OPTION]... [USER@]HOST::SRC [DEST]
rsync [OPTION]... rsync://[USER@]HOST[:PORT]/SRC [DEST]
> Here is my batch file on windows:
> rsync251-2 -e ssh -av rsync at 192.168.1.2:/var/www/ e:\essai
This looks like you used ssh transport instead of rsync:, this AFAIK
means that the Unix system is responsible for the authentication.
So, your rsync secrets are never checked, but the prompt is from ssh.
If you want to forego password checks in this way, you probably want
to use ssh key authentication w/o a key password.
But this special command line will probably never work, anyway, since
the user rsync obviously is a rsync secrets-file user, not a unix user
(which would be required for ssh transport).
I would recommend to you thoroughly reading the manpages for:
Also, for deeper understanding, read should up about Unix authentication.
Questions that are unclear then will likely be discussed with more
Yours, have fun, Bernd
More information about the rsync