Cannot Understand RSYNC Modules or SSH Key Setup

jgrim

Cadet
Joined
Dec 4, 2021
Messages
3
Hi,
I have a TrueNAS Mini.
I am trying to set up an rsync connection over SSH to a remote NAS. I have set up the keypair on the remote machine.
This is proving to be extremely difficult. I am very used to the command line and am extremely frustrated with the documentation and the GUI. I wish TrueNAS would set up their boxes so the command line could be used. It is very frustrating to use the GUI and this could have been done in 3 min on the command line, but I am constantly reading about how I should never muck with the underlying system, so I haven't touched it.
I do not understand what the "SSH Keypair" GUI screen is meant to accomplish, and I, likewise, do not understand what the "SSH Connection" GUI screen is meant to signify, because it doesn't seem to do what I think it does.
My understanding is that the SSH Keypair gens a local keypair, and I am supposed to paste my remote host key in the SSH connection, and set up an outgoing connection to the server I'm trying to access. It does not seem to do this.
When I went to set up the RSYNC Task, I got the following:

wtf.png

I am struggling to grasp why or how I have to set up a local user to rsync to a remote machine. How is this accomplished? What is it for? Why? What does this accomplish? What am I doing wrong?

Can someone please explain to me, in very simple steps, how to achieve what I am trying to achieve? Please explain in your own words. The documentation is very confusing to me and I have already read through it carefully at least 4 times.

Thanks in advance for your help, and sorry if I sound frustrated.
 
Joined
Oct 22, 2019
Messages
3,641
I agree about the GUI and documentation. It feels like a lot of it is implied or assumed, but not quite. :frown: Still feels unfinished and head-scratching.


To be absolutely clear-- the remote NAS is NOT a TrueNAS
I believe you're supposed to create the keypair (ssh-keygen) on the TrueNAS system, for whichever user you wish to run the Rsync Task. This user needs proper permissions for the source directory. Then the public key needs to be copied (ssh-copy-id) to the destination server to whichever user (on the remote side) has the proper permissions for the destination directory.

The user on the TrueNAS system needs a home folder that exists outside of the boot-pool, such as /mnt/poolname/home/username

The .ssh folder it creates upon generating the keypair needs to be read-write-execute only for the user in question.

In the Rsync Task GUI, you select your local TrueNAS user from the list. However, for the "Remote Host" you enter it in format of user@server.ip.or.hostname
 
Last edited:

jgrim

Cadet
Joined
Dec 4, 2021
Messages
3
I agree about the GUI and documentation. It feels like a lot of it is implied or assumed, but not quite. :frown: Still feels unfinished and head-scratching.



I believe you're supposed to create the keypair (ssh-keygen) on the TrueNAS system, for whichever user you wish to run the Rsync Task. This user needs proper permissions for the source directory. Then the public key needs to be copied (ssh-copy-id) to the destination server to whichever user (on the remote side) has the proper permissions for the destination directory.

The user on the TrueNAS system needs a home folder that exists outside of the boot-pool, such as /mnt/poolname/home/username

The .ssh folder it creates upon generating the keypair needs to be read-write-execute only for the user in question.

In the Rsync Task GUI, you select your local TrueNAS user from the list. However, for the "Remote Host" you enter it in format of user@server.ip.or.hostname
Hey thank you so much.
 
Top