-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Rob Brenart wrote: > Niklas Schönberg wrote: > > Rob Brenart wrote: > > >>>> 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 >>>> > > > --password-file only works if you are connecting to an rsync daemon > running on "host". I'm not totally sure about this, but since you have > specified the "-e ssh" option, I'm guessing that you are running rsync > with ssh as transport. In this case it is ssh, not rsync, that > authenticates you. The best way I know of to do scripts lke this is to > create a key-pair for ssh, and add the public key to authorized_keys > file on "host". > > "man ssh" has more on this. Of course you could also run rsync as daemon > on "host" with "rsync --daemon", but this is not recommended unless you > are on a trusted network, or run a public anonymous rsync service.
>> > Well, host is running the daemon, as setup in inetd... and I get the > same error problem if I use -e ssh or not, though that might be set > somewhere in the debian package as a default so I'm not certain. I haven't used rsync in daemon mode myself, but I found some istructions stating that you should use a syntax of host::modulename/path/to/file when trying to connect to a rsync daemon. (note the double ':' ) It also stared that you should not normally specify the -e option. Hope this helps. You should perhaps check your network traffic to see that it is connecting to the correct port (tcp/873), since I have no idea if the :: works or not. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDBRg2oGhcRzXgBl4RAh4gAJ95xzLA9xD2u967dbCE4dfQCWUKhwCfT+0N hOKm331Ic3TNh4/z3EvojNA= =13MB -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]