NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
ArchPrime
Jan 21, 2020Guide
Rsync over SSH to Digital Ocean Droplet
Hi, when stting up a backup job I am struggling to get my Ultra6 to connect to my remote Digital Ocean Droplet , so it can download ald locally store backups from there.
I have added the SSH public key given to me by ReadyNAS to Digital Ocean SSH keys (copy-pasting in to the 'add new SSH key dialog in Digital Ocean Dashboard from the publick key txt file that ReadyNAS generated) and have given that key the name 'ReadyNAS' (just for originality)
When in ReadyNAS backup I then try to connect to the domain on the host, using method Rsync over SSH, and username 'ReadyNAS', I always get error:
Permission denied (publickey).
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: unexplained error (code 255) at io.c(235) [Receiver=3.1.3]
I have tried using the server IP address rather than domain as the source, and using username 'root', and even powercycling the server - but none of these seemed to help.
What might I be doing wrong?
*** Edit
Logging in to server via SSH using PuTTy, to check if SSH service is running using:
sudo service ssh status
I can see my connection attempts, but that a different port is being tried each time, and none of these are the port 22 I actually set in ReadyNAS.
Jan 21 06:53:57 nz sshd[3628]: Connection closed by invalid user ReadyNAS (my ReadyNAS static IP) port 40214 [preauth]
Jan 21 06:53:58 nz sshd[3653]: Invalid user ReadyNAS from (my ReadyNAS static IP) port 40216
Jan 21 06:53:59 nz sshd[3653]: Connection closed by invalid user ReadyNAS (my ReadyNAS static IP) port 40216 [preauth]
etc
Does this offer any clues?
6 Replies
Replies have been turned off for this discussion
- StephenBGuru - Experienced User
ArchPrime wrote:
I can see my connection attempts, but that a different port is being tried each time, and none of these are the port 22 I actually set in ReadyNAS.
I think you are seeing the source port in the status, and not the destination port.
ArchPrime wrote:
I have added the SSH public key given to me by ReadyNAS to Digital Ocean SSH keys (copy-pasting in to the 'add new SSH key dialog in Digital Ocean Dashboard from the public key txt file that ReadyNAS generated) and have given that key the name 'ReadyNAS' (just for originality)
Perhaps try running rsync manually from the NAS using ssh. Log in as root on the NAS. DigitalOcean does have a tutorial here: https://www.digitalocean.com/community/tutorials/how-to-copy-files-with-rsync-over-ssh but it runs in the other direction (assuming you are logged into the origin server, and you are logging into the destination server).
FWIW, it appears that you might not have an account with the username ReadyNAS set up on the DigitialOcean server.
Hi thanks - looks like you were on to something with missing 'ReadyNAS' account.
I tried and apparently succeeded in adding an account by this name in Linux, but still no luck - but when I tried logging in as 'root' instead from ReadyNAS, the connection tested as ok. However I was not able to browse for the source directory (browse button was greyed out)
Manually enetering the source path, then running a backup it looks like remote directory and contents were found, but copying failed; giving 'Disk quota exceeded (122)' error.
The selected directory to sync contains only 90mb, and to my knowledge I have not set any quotas at source or destination.
Where is this error likely comming from?
One possibly relevent clue - when I use PuTTY to acess the Digital Ocean droplet server as root, I have to supply a pass phrase related to my root SSH key to log in . Supplying of passphrases does not even seem to be an option from ReadyNAS. Does this sound relevent?
- StephenBGuru - Experienced User
ArchPrime wrote:
Hi thanks - looks like you were on to something with missing 'ReadyNAS' account.
I tried and apparently succeeded in adding an account by this name in Linux, but still no luck - but when I tried logging in as 'root' instead from ReadyNAS, the connection tested as ok. However I was not able to browse for the source directory (browse button was greyed out)
To be clear, I think this account is needed on the Digital Ocean server, not the NAS. The key also needs to be connected to this account. (that is, placed into the account's ~/.ssh/authorized_keys).
ArchPrime wrote:
One possibly relevent clue - when I use PuTTY to acess the Digital Ocean droplet server as root, I have to supply a pass phrase related to my root SSH key to log in . Supplying of passphrases does not even seem to be an option from ReadyNAS. Does this sound relevant?
Could be. Have you checked the service status on the server when you are using root?
sudo service ssh status
ArchPrime wrote:
Manually entering the source path, then running a backup it looks like remote directory and contents were found, but copying failed; giving 'Disk quota exceeded (122)' error.
The selected directory to sync contains only 90mb, and to my knowledge I have not set any quotas at source or destination.
Where is this error likely coming from?
You were copying to the ReadyNAS? If so, what was the destination path?
Related Content
NETGEAR Academy

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