Use rsync daemon via ssh fails

Volker Quetschke quetschke@scytek.de
Mon Dec 4 01:17:00 GMT 2006


I have a strange problem with rsync. Using rsync in the way
describes in the man page as:
"USING RSYNC-DAEMON FEATURES VIA A REMOTE-SHELL CONNECTION"
fails but starting the daemon manually and using it and also
the directly using rsync via ssh works. Some examples (the used
/etc/rsyncd.conf follows at the end of this mail).

1) This fails:

quetschke@Turion ~
$ rsync -e "ssh -l q" boxy2::
q@boxy2's password:
Warning: No xauth data; using fake authentication data for X11 forwarding.
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at
/home/lapo/packaging/tmp/rsync-2.6.6/io.c(434)

2) This works:
   First log into boxy2 (with ssh) and start the daemon:

q@boxy2 ~
$ rsync --daemon

   Then use another window on the "client" side to list the available
   rsync modules:

quetschke@Turion ~
$ rsync boxy2::
somedir         rsync test dir


3) This works two, without using the daemon features

quetschke@Turion ~
$ rsync -e "ssh -l q" boxy2:/somedir/
q@boxy2's password:
Warning: No xauth data; using fake authentication data for X11 forwarding.
drwxr-xr-x           0 2006/12/03 19:20:26 .
-rw-r--r--           9 2006/12/03 19:20:26 testfile.txt

THis is the used /etc/rsyncd.conf:
- - - - snip - - - -
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock

max verbosity = 10

use chroot = no
strict modes = no

[somedir]
        path = /somedir
        comment = rsync test dir
        read only = no
- - - - snap - - - -

The cygcheck output of the server side follows as an attachment.

Any ideas what the problem might be?

   Volker

(Yes, /var/log and /var/run are writable for user q and rsyncd.log
doesn't show anything suspicious.)

-- 
PGP/GPG key  (ID: 0x9F8A785D)  available  from  wwwkeys.de.pgp.net
key-fingerprint 550D F17E B082 A3E9 F913  9E53 3D35 C9BA 9F8A 785D
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck.log
URL: <http://cygwin.com/pipermail/cygwin/attachments/20061204/3beeed0c/attachment.log>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 248 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20061204/3beeed0c/attachment.sig>


More information about the Cygwin mailing list