title: Can't use RSYNC daemon via SSH connection
body: <p>I have a problem while trying to use RSYNC with daemon and SSH connection.</p>
  
  <p>What I wan't to do is simply login to rsync without pass and be able to use the rsync daemon.</p>
  
  <p>Here is my conf file (/etc/rsyncd.conf):</p>
  
  <pre><code>uid = rsync
  gid = rsync
  
  [yxz]
      path = /home/pierre/xyz
      read only = false
      auth users = rsync
      hosts allow = &lt;myIP&gt;
  </code></pre>
  
  <p>/home/pierre/xyz has gid wich rsync user can reach.</p>
  
  <p>This is working (but is not using the daemon):</p>
  
  <pre><code>rsync -rzP --stats --ignore-existing --remove-sent-files rsync@mydomain.fr:/home/pierre/xyz/ /media/xyz --include="*.cfg" --exclude="*"
  </code></pre>
  
  <p>This is not working (using the daemon), but rsync asks me for pass and then says "@ERROR: auth failed on module xyz" because I don't have configure authentification this way :</p>
  
  <pre><code>rsync -rzP --stats --ignore-existing --remove-sent-files rsync://rsync@mydomain.fr/xyz/ /media/xyz --include="*.cfg" --exclude="*"
  </code></pre>
  
  <p>This is not working (using the daemon):</p>
  
  <pre><code>rsync -rzP -e "ssh -l rsync" --stats --ignore-existing --remove-sent-files rsync://rsync@mydomain.fr/xyz/ /media/xyz --include="*.cfg" --exclude="*"
  </code></pre>
  
  <p>Here is the error message:</p>
  
  <blockquote>
    <p>rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
    rsync error: error in rsync protocol data stream (code 12) at io.c(605) [Receiver=3.0.9]</p>
  </blockquote>
  
  <p>With -v option to the ssh command, it says connection is allowed, so I suppose rsync is the problem, not ssh.</p>
  
  <p>Any idee ?</p>
  
  <p>Thanks for your help :)</p>