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

Forum Discussion

azzkiker's avatar
azzkiker
Aspirant
Nov 01, 2013

Rsync using SSH

Hello @ all,

i want to use my newly bought Readynas RN104 to Backup some of my data from a Synology Diskstation DS2413+.
To do this, i use rsync. The Readynas powers itself up, connects via rsync to Diskstation and copies newly modified files.

But now i like to change to a secure connection using SSH because i want to use internet for the task.
In the Web interface it's easy to select Rsync over SSH and export public rsa key.
I copied the public key to the Diskstation and tested SSH connection with keys on the console of the Readynas, which is working fine.
But i can't connect using Rsync. Again i tried using console and there seems to be a little problem with the connection path.
The Readynas saves the connection string like this: "xxx.xxx.xxx.xxx:/path" in the configuration file "/etc/frontview/backup_jobs.conf"
But the Diskstation wants to have a connection string like this: "xxx.xxx.xxx.xxx::path"
When creating a backup job not using SSH the connection string is correctly saved to "backup_jobs.conf", so it's clear why it is working with only using Rsync.
I did not find the module which is writing backup_jobs.conf. Can someone please tell me which file needs to be modified.
I'm not sure if the connection string the Diskstation wants or if the string the Readynas uses is the standard string. Possibly this can be updated in next firmware version.

Best regards
Jens

12 Replies

Replies have been turned off for this discussion
  • I setup my DataBox to have passwordless SSH into my RN104 via public/private key. Once my DataBox was able to ssh in without being prompted for a password, this works to rsync the data without being prompted for a password:

    rsync -av --delete /home/DataBox -e 'ssh -p 22' root@<readynas ip>:/data/Backup/DataBox
  • I found some time to re-check my rsync connection using SSH.
    This seems to be a different behaviour of the Synology NAS.
    The rsync server is asking for a password, not the SSH (this works fine with the keys).

    If i use the command "rsync -auvz -e 'SSH -v' Rsync@ip-adress:/volume1/path_to_the_synology-share /path_on_the_readynas" to connect from the Netgear Readynas to my Synology it is working.
    If i replace the bold part with "/" it is not working and if i use ":" i get asked for a password from the rsync server because SSH is already working.

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