Setting up a client

Seeking information on HOW to set-up/administer a RaspberryPi single board computer to SEND an sdb database file TO my TrueNAS Mini. I have a SH script that handles most of the file associated tasks, but I need help getting the rsa public/private keys and access components going.

What do you mean b y “an sdb database file”?

If you just want to sync a file/folder you can create an SSH keypair in the TrueNAS UI under credentials and add an SSH connection using that keypair. You’ll have to enter the public key into the authorized_keys file of a fitting user on the pi. Then you can create an Rsync Task in PULL direction on the Data Protection screen.

If you want the sync to be controlled by the Pi you’ll also need to create a key pair there if you don’t already have one and add this one’s public key to the authorized keys (which in 25.10 are confusingly called public keys) of a user with permissions to write in the target directory on the NAS. Then you can scp/rsync the file(s).

The file is an sqlite database file. I have an SH script on the Rpi that does all the work. By “work” I mean stopping the db application, scp the file from the Rpi over to the NAS and then starting the db application. Am I reading your info correctly…is it possible for the TrueNAS to also perform the work- and in doing so I would not have to administer the Rpi with the public/private keys?

So you just need someone to tell you, that you’d need to run ssh-keygen and then copy the content of the newly created .pub file to the authorized keys of a user that can write to the appropriate directory?

Yes- that’s it. Thank you-

Resolved