RSync and SSH problems
Wayne Davison
wayned at samba.org
Mon Jul 18 18:35:26 GMT 2005
On Mon, Jul 18, 2005 at 05:58:12PM +0200, Olivier Thauvin wrote:
> Le Monday 18 July 2005 17:42, vous avez écrit :
> > rsync -av --rsh="ssh -l sshuser" *.* user at host.com::module
>
> The syntax is wrong:
>
> - ssh -l is not need as rsync will use the user in the url:
Not when combined with :: syntax. The "user" in the above syntax is the
daemon-protocol's user, not the ssh user, so if you need an alternate
sshuser AND you want to start up a single-use daemon, you must use the
-l option to ssh (as suggested in the rsync docs). Typically users
don't want both a remote-shell transport and daemon-syntax, but some
folks do.
To the original poster: check the syslog for any messages about why
the remote rsync-daemon exited. It may be that you don't have the
rsyncd.conf file in the home dir of the sshuser (or at least a symlink
in that homedir to the config file).
..wayne..
More information about the rsync
mailing list