Niklas Schönberg wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDBQ7JoGhcRzXgBl4RAjiNAKD7xFa9uVRV130e/KwdY724f+lbRgCfdIVJ
Iqw7SN0rhqdhrb9vVGvjn3k=
=uTRg
-----END PGP SIGNATURE-----
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.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]