Backup FreeNAS >>>> Qnap Rsync ????

kherr

Explorer
Joined
May 19, 2020
Messages
67
FreeNAS 11.3-U3.2
AMD 3600
32 GB
12 X 4TB -- R60 equiv. (I only had to buy 1 drive to get up and running)

Anyway to do this without all the ultra security of SSH keys ??? I'm a 1 man network and have been fighting this for days. I don't really care about security .... if nothing else I'll disconnect internet. I REALLY need to backup my NAS so I can install new drives coming tomorrow, and in the future till I can afford a shadow FreeNAS box. Googled alot to see how to install keys ...... doesn't have complete instructions on what I found or the commands simply gave an error. The documentation posted here has incorrect screen shots/info, previous versions ???

I can easily go from Qnap >> FreeNAS. But come into roadblock going the other way. Q doesn't have rsync "Modules" so the destination can't be defined .... or is there another way ?? Q doesn't allow for a "pull" rsync.

I've had my Q's for ~6 years and decided to combine them all into one unit that will be more repairable down-the-road if there would be a hardware failure. I've learned alot from the boards here and Goggling ..... but I'm up against a brick wall on this one ....... but then again I'm scratching my head trying to get HDHomeRun DVR working too ..... another time on that one.

Lots more to learn, but right now I have time to do this ......... Any help .. guidance .... suggestions ..... etc would be appreciated. From Google's, I'm not the only one with this issue. The ones that had solved it, never gave precise info on what they did .........

Thanks a $Million in advance ....... Kevin
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
  1. On FreeNAS, go to System->SSH Keypairs. Click Add. Put Qnap as the name, and then click Generate Keypair. This will populate the Private Key and Public Key fields. Select all the contents of the Public Key, and copy them to a temporary text file.
  2. On Qnap, (see also https://wiki.qnap.com/wiki/SSH:_How_To_Set_Up_Authorized_Keys), go to /etc/ssh/config. Add the contents of the temporary file with the public key to the end of /etc/ssh/config/authorized_keys.
  3. Verify you can ssh from FreeNAS to Qnap now from the shell. Now you should be able to set up your PUSH replication.
 
Last edited:

kherr

Explorer
Joined
May 19, 2020
Messages
67
  1. On FreeNAS, go to System->SSH Keypairs. Click Add. Put Qnap as the name, and then click Generate Keypair. This will populate the Private Key and Public Key fields. Select all the contents of the Public Key, and copy them to a temporary text file.
  2. On Qnap, (see also https://wiki.qnap.com/wiki/SSH:_How_To_Set_Up_Authorized_Keys), go to /etc/ssh/config. Add the contents of the temporary file with the public key to the end of /etc/ssh/config/authorized_keys.
  3. Verify you can ssh from FreeNAS to Qnap now from the shell. Now you should be able to set up your PUSH replication.
KOOOOOL and in english too, not 'geek' speak !!! I'll try it tonight or in the morning !!! Everything you said I basically already encountered in some way ....
 

kherr

Explorer
Joined
May 19, 2020
Messages
67
Created Qnap key pairs on FN

Created Qnap user and put “private/public key in field, placed in ‘home ssh authorized_keys’ file as should. Neither worked. Still get error message

Placed ‘public key’ in ~/ssh/authorized_keys/authorized_keys file on Qnap – I had to put the file on the FN and insert manually, cat mustn’t like windows files. VI is only editor on Q … really baaaaaad

Use Qnap user in rsync job

In FN shell can ssh into Qnap, but it logs into “ROOT” user by default which I can’t get passed by “PASSWORD” prompt because according to gurus on Q forum there is “no way” to login as ROOT … so much for the gurus …. Thus no password, default or otherwise

If I login : ssh admin@192.168.x.xxx everything is fine and prompts for admin PASSWORD

I’m learning a ton about linux file/directory commands …….

Untitled.jpg

anything else to try, places to put files ........

TIA Kevin
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
OK, I didn't know you were going to login to the Qnap as qnap. The instructions above were for logging in as root. In this case. you'd need to create the authorized_keys file in qnap's home directory, under the .ssh folder.
 

kherr

Explorer
Joined
May 19, 2020
Messages
67
Sorry for being gone so long ... I've been busy working on an outside project and by the time I'd quit for the day ... I'd be totally wasted.

Logged in as "root", now my only error is the "Disconnect Error[ error code 14 ] was generated when trying to communicate with remote host 192.168.1.174 and remote user root. "

When logging into the Q from 'shell' .... I get a password prompt to which there is no know answer.

Again Sorry for disappearing so long ....
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Also check on the Qnap side /etc/ssh/sshd_config for the setting PermitRootLogin. If this is no, then root can't login. You'll need to set this to either yes or prohibit-password to allow the SSH authorized_key to work.
 

kherr

Explorer
Joined
May 19, 2020
Messages
67
I tried many, many things .... searched everywhere ...... can't get it to work. I finally just used W10 file manage to back everything up, with a mix of Beyond Compare.

I swapped out disks for 6 X 8TB Exos drives, with another 6 added when I have the $$$$ and installed the latest updates. Now I'm fighting Plex needing constantly being needed to restarted and losing network connection with the FN .........

Any issues with the latest round of updates ???
 
Top