Note, David, that rsyncd.conf is not used at all unless you're using the "::" or "rsync://" transfer syntax. If you use one of those syntaxes, then the --rsh command will be ignored because can't use ssh to connect to an rsync --daemon. Which is it that you wanted to use?
- Dave Dykstra On Tue, Oct 16, 2001 at 10:03:11AM +0100, peter lindsay wrote: > Hi, > > > There's a help page on http://www.freebsddiary.org/secure-file-copy.php . > I hope it helps you. > > The way to do it seems to be using ssh public-private keys, but I've tried > this a few times and can't get it to work. > > I suspect that when my ssh was compiled, an option was left out. > > Anyway, > > good luck, > > Pete Lindsay > > > ----- Original Message ----- > From: "David Dahl" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Saturday, October 13, 2001 7:50 PM > Subject: ssh->rsync->newbie > > > > warning: rsync/sysadmin newbie question... > > > > I want to sync the web directory from my production server to my > > backup server (through ssh). rsync is working fine, except that it > > doesn't seem to authenticate my rsync user which is not a system > > user. If I run the command manually, sshd asks for the far end > > user's password. If I use that user's password, the files are > > rsynced to a direcory inside the user's home directory, (i.e.: > > /root/www/). > > > > Do I need to write a shell script that allows for sshd authentication > > and rsyncd authenication? Does anyone have an example script that > > uses the same procedure? > > > > here are my config files and command: > > > > rsyncd.conf: > > ================ > > > > motd file = /etc/rsyncd.motd > > log file = /var/log/rsyncd.log > > pid file = /var/run/rsyncd.pid > > lock file = /var/run/rsync.lock > > max connections = 2 > > [www] > > path = /var/www/html > > comment = path to HTDOCS dir > > uid = nobody > > gid = nobody > > read only = no > > list = yes > > auth users = www > > hosts allow = 10.10.10.10 > > secrets file = /etc/rsyncd.scrt > > > > ============== > > rsyncd.scrt: > > ============== > > www:password > > > > =============== > > > > rsync command: > > > > > > rsync --verbose --progress --stats --compress --rsh=/usr/bin/ssh \ > > --recursive --times --perms --links --delete \ > > /www/htdocs/* 10.10.10.10:www > > > > thanks in advance! > > > > David Dahl > > -- >