Tuesday, 9 March 2010

ReadyNas NV+ and rsync

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:
newuser@mynas's password:
Connection closed by
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
newuser@mynas:~$ ssh-keygen
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:
c1:25:12:5b:21:18:31:23:73:58:45:99:2c:0b:0e:7c newuser@nasone

Before that I had to edit /etc/passwd to enable interactive login for newuser as by default users cannot login.


  1. You saved my bacon man. Thanks! I wondered too why rsync wouldn't stick. I tried what you said and WHAMMO I was backing up.

    I like how on Frontview in the "Add a new backup job" tab if you select Rsync Server for your backup source and start to type the IP address, the apply button stays grayed out. Lovely! You literally cannot add an Rsync backup job. What junk this thing is. I understand that when Infrant own the company things were different. Never again with Netgear.

  2. Hello,

    Thanks for the hint, I was trying to figure how to rsyncd server chooses where to backup :-)

    You can just:
    # useradd -d /c/backup/amilo/ -s /bin/bash -g users -c "Amilo Backup User" amilo

    @kirm, I found the netgear nv+ to be a great value-for-money 4-bay NAS server.