ssh->rsync->newbie

peter lindsay plindsay at dcs.st-and.ac.uk
Wed Oct 17 19:51:12 EST 2001


Hi,

I have two linux/apache servers running rsync and ssh.
I can manually ( i.e. command line )  rsync between the servers with no
difficulty - other than being required to enter a password before the rsync
initiates.

I wanted to put the process in a script and run it through cron(tab), but I
still get prompted for the password.

I've followed literature on this ( there seems to be plenty ) but cannot get
further. I've looked at password files and public/private key generation. I
suspected that perhaps my ssh installation was incomplete, but I don't know.

Any suggestions gratefully received,

Thanks,

Pete Lindsay


----- Original Message -----
From: "Dave Dykstra" <dwd at bell-labs.com>
To: "David Dahl" <david at ddahl.com>
Cc: <rsync at lists.samba.org>
Sent: Tuesday, October 16, 2001 3:02 PM
Subject: Re: ssh->rsync->newbie


> 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" <david at ddahl.com>
> > To: <rsync at lists.samba.org>
> > 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
> > > --
> >
>
>





More information about the rsync mailing list