peter lindsay plindsay at
Thu Oct 18 18:59:12 EST 2001

Thanks Dave;

In the literature there are many references to running rsync and ssh
together. I need to use ssh because normal ftp is disabled on both my
servers. I need to use rsync because it is, by miles, the best way to copy
things across.

I did notice, though, when I ran ssh in debug mode, I got the message:

"Method 'publickey' disabled."

I suspect my problems are to do with this.



----- Original Message -----
From: "Dave Dykstra" <dwd at>
To: "peter lindsay" <plindsay at>
Cc: <rsync at>
Sent: Wednesday, October 17, 2001 10:47 PM
Subject: Re: ssh->rsync->newbie

> On Wed, Oct 17, 2001 at 10:51:12AM +0100, peter lindsay wrote:
> > 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
> > 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
> > 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
> >
> > Any suggestions gratefully received,
> >
> > Thanks,
> >
> > Pete Lindsay
> Again, before we go on, do you want to use ssh or do you want to use
> rsync --daemon?  There are ways in both cases to do transfers without
> a password, but the way you do it is very different so let us know which
> one you want.  Your original question showed you seemed to be trying both.
> With ssh, the easiest way is usually to do a ssh-keygen without a
> and copy the public key into ~/.ssh/authorized_keys on the server.  With
> rsync --daemon, the default is no password but if that's a security
> you can use a "secrets file" on the server side and use
the --password-file
> option on the client where the file is not world readable.
> - Dave Dykstra

More information about the rsync mailing list