NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

harry1's avatar
harry1
Aspirant
May 15, 2018

RSYNC over SSH stopped working

Hi,

 

I had an unexpected problem with my backups from Ubuntu to my ReadyNAS314 (firmware 6.9.3), which seemed to start since I upgraded Ubuntu from 17.10 to 18.04.

I use duplicity via rsync over ssh, and I was getting :

ssh: Could not resolve hostname nas314-xx-xx-xx: Name or service not known

I couldn't ssh into the NAS either, (as me) until I tried adding a .lan domain suffix in the script. So I modified the backup script, and then I got the errors:

Host key verification failed.
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: unexplained error (code 255) at io.c(235) [Receiver=3.1.2]

Looking on the SSH configuration on the NAS admin console for the backup user, I noticed the imported key for me had RSYNC Only unchecked, but for root on Ubuntu, it was checked.

So I tried unchecking the RSYNC Only checkbox for root on Ubuntu, and now the backup works again.

 

Does anyone have any ideas why this is. Apparently openssh on Ubuntu went from 7.2 to 7.6?

 

Many thanks.

9 Replies

Replies have been turned off for this discussion
  • Icewaterhot's avatar
    Icewaterhot
    NETGEAR Employee Retired

    What version of rsync do you have installed in Ubuntu?

    I try this local to remote Rsync over ssh is fine.  I installed Rsync(3.1.3) in ubuntu.

    • mdgm-ntgr's avatar
      mdgm-ntgr
      NETGEAR Employee Retired

      We use Rsync 3.1.2 in 6.9.3 so if you're running an older version of Rsync I also think updating Rsync on your Ubuntu machine would be worth a try.

      • harry1's avatar
        harry1
        Aspirant

        I have rsync 3.1.2 as well (standard ubuntu 18.04 pkg install)

         

        protocol version 31, same as the readynas

         

        (Many thanks for your time)

         

        H.

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More