plindsay at dcs.st-and.ac.uk
Tue Oct 16 19:03:11 EST 2001
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.
----- Original Message -----
From: "David Dahl" <david at ddahl.com>
To: <rsync at lists.samba.org>
Sent: Saturday, October 13, 2001 7:50 PM
> 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.:
> 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:
> 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
> 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
> 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
More information about the rsync