NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
herfjord
Oct 06, 2012Aspirant
Problems when connecting to rsync/SSH from server
Dear all,
I'm struggeling to connect to my ReadyNAS from a CentOS server by rsync through SSH. It works great without SSH, but I'm going to perform the backup over the internet, so I have to use SSH.
I have imported the public part of the key I'm using into the share in the ReadyNAS's frontview.
I'm using the following syntax at the CentOS server:
And I get the following error when running the command:
Is there more I need to do in the ReadyNAS's frontview to get it working than import the public half om my key in the specific share?
If I do:
it'll work like a charm...
Thanks in advance,
BR
Henning
I'm struggeling to connect to my ReadyNAS from a CentOS server by rsync through SSH. It works great without SSH, but I'm going to perform the backup over the internet, so I have to use SSH.
I have imported the public part of the key I'm using into the share in the ReadyNAS's frontview.
I'm using the following syntax at the CentOS server:
rsync -vvarb -e "ssh -i /home/my-user/my-user-RSAprivatekey" --delete --backup-dir='~trash' --suffix='mysuffix' /source/dir my-user@[ReadyNAS-IP]::foldernameofshareinReadyNAS
And I get the following error when running the command:
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]
Is there more I need to do in the ReadyNAS's frontview to get it working than import the public half om my key in the specific share?
If I do:
rsync -vvarb --delete --backup-dir='~trash' --suffix='mysuffix' /source/dir my-user-for-the-rsync-share@[ReadyNAS-IP]::foldernameofshareinReadyNAS
it'll work like a charm...
Thanks in advance,
BR
Henning
4 Replies
- mdgm-ntgrNETGEAR Employee RetiredWhat version of RAIDiator?
That's an out of date version of Rsync. If your RAIDiator is up to date that probably indicates the Rsync on your CentOS server is out of date. Try updating rsync on that.
What model ReadyNAS is this on? Is it on a Pro? Here are the instructions for using Rsync over SSH: Setting up Rsync over SSH
Rsync over SSH is not a feature on the Ultra though there is a community add-on hack to enable it. - herfjordAspirantThanks for the feedback :)
I'm using RAIDiator 4.2.19, and yes, it's actually a ultra with the $0.99 add-on.
I have it working the other way around, means the ReadyNAS is able to push files to my CentOS over SSH (after importing the key as thrusted and so on..).
From my CentOS:
# rsync --version
rsync version 3.0.6 protocol version 30
I Installed my server a couple of days ago, and I trusted my resposetories to download the latest version, but I see from the official website of rsync that the latest version is 3.0.9, and 3.0.6 is as old as May 09.
I will try to update both my CentOS rsync and the RAIDiator to see if it helps.
Again, thanks for your feedback, and I read between the lines that you mean I have done it right with the syntax..?
BR
Henning - herfjordAspirantWorking!
The problem was a space in the --SUFFIX.
My actual syntax is:rsync -vvarbe ssh --delete --backup-dir='~trash' --suffix='~ `date +%Y.%m.%d_%H-%M-%S`' /source/folder 192.168.1.10:/sharename
And that worked well without SSH...
Removed the space after the '~' in the suffix, like this:rsync -vvarbe ssh --delete --backup-dir='~trash' --suffix='~`date +%Y.%m.%d_%H-%M-%S`' /source/folder 192.168.1.10:/sharename
And it was all good :D
Thanks!
BR
Henning - HAKAspirantHi Henning
Im trying to do exactly the same - but so far witout succes.
What did you do in the NAS besides installing the $0.99 add-on?
Were did you do that?I have imported the public part of the key I'm using into the share in the ReadyNAS's frontview
Would be really gratefull for any hints.
Regards
Johan
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!