[BALU] rsync: --password-file doesn't work

Mark Dillavou mlists at line72.net
Thu Feb 8 08:19:01 CST 2007


On Wed, 2007-02-07 at 22:16 +0000, Eric Volker wrote:
> I'm trying to automate rsync on a Mac OS X machine to sync some files  
> from a Linux file server. From a shell, I can type
> 
> rsync <ip address>:/path/to/remote/folder /path/to/local/folder
> 

> rsync --password-file=/Users/<username>/rsync-pass <ip address>:/path/ 
> to/remote/folder /path/to/local/folder
> 
> I *still* get prompted for the freaking password. Per man rsync, the  
> only thing in the rsync-pass folder is the password as a single line.  
> What could I possibly be missing?

I'm not sure about MacOSX, but on most linux distributions, rsync is
setup to use ssh by default.  If you setup ssh keys, then you shouldn't
need a password and would be much more secure than putting a password in
a file!

-- 
Mark Dillavou <mlists at line72.net>




More information about the Members mailing list