Sftpgo at truenas as storage for duplicacy

Hi!

I’m trying to get Duplicacy up as my backup-solution. As I’m new to a lot of things I’m stuck and hope for your help.

What I would like to do and what I have done until now:

I do have truenas as a VM and installed the sftpgo-app. I added storage and a user with sftpgo.
Getting this configured as a backup-destination with Duplicacy I do get error after error - the main thing is that a ‘public-key’ is needed which I don’t have. As the user/pw-option should be available how do I get this configured?

If there is a howto with a little bit extra to let me learn what I’m missing I would be very thankful.

kind regards,

Tom

I’m unfamiliar with sftpgo and TrueNAS specifically, but sounds like you need to create a public-private key pair…

On Windows you can do it with PuTTYgen from the PuTTY toolset - example (oldish guide but works, though I recommend the new Ed25519 key type under EdDSA, instead of RSA). Important: instead of ‘Save private key’, you need to export it in OpenSSH format from the Conversions menu. That’ll be the private key. The public key can be copy pasted from the text box into a text file.

On Linux you can do it from the CLI:

ssh-keygen -t ed25519

You’ll have an id_ed25519 (private key) which goes on the Duplicacy client, and corresponding id_ed25519.pub under ~\.ssh which needs to be copied to the sftpgo/TrueNAS server.

You can password protect the private key, in which case the password field in the Duplicacy GUI is the password to unlock the key.

@Droolio
Thank you for your answer!

But I’m too stupid for this truenas with sftpgo thing. Tried it with minio (S3) on Truenas → will not work, tried it with sftp → will not work. I cannot find a proper howto to get sftpgo configured.

I do have the keypair created with truenas and added the public key to the duplicacy config but there is no handshake. Tried different folder configurations (found some information about that with duplicacy) but there is no handshake.

Is there some kind of recommendation for a linux backup-server-solution? I don’t feel like Truenas is something I would like to run…

If you’re unfamiliar with sftp then I suggest you just get it working with normal username+password authentication first. Sounds like you may just need to configure the firewall so the client (Duplicacy) can reach it.

As for TrueNAS, unless you have a specific reason for it, you can just set up a very simple Linux server and enable OpenSSH (for sftp) on it - most distros have this installed and enabled by default and, if not already, is easy to set up. Just search for guides on how to do this for your distro. You mentioned VM, but I’m not sure what kind of host system you have?

Personally, I recommend Debian but you could use Ubuntu or any other distro but for a server I’d always recommend headless (CLI, no GUI) except if you wanna go down the route of doing many different things with the server, in which case Unraid or Proxmox (my preferred) is good direction. A simple CT container in Proxmox is all that you’d need to have a simple sftp server. A VM is a bit overkill.