Setting up an account to backup a windows machine to my Nas I discovered an issue with the rsync setup.
I first enabled the rsync protocol in the readynas admin interface.
I then added a new user account and when I was testing I got the following error:
rsync -av myidr/ newuser@mynas:
Connection closed by 192.168.1.100
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at /SourceCache/rsync/rsync-35.2/rsync/io.c(452) [sender=2.6.9]
I tracked down the problem to not having a ssh key on the nas for the new user:
su - newuser
Generating public/private rsa key pair.
Enter file in which to save the key (/c/home/newuser/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in .
Your public key has been saved in .pub.
The key fingerprint is:
Before that I had to edit /etc/passwd to enable interactive login for newuser as by default users cannot login.