Can't access SSH key from within Duplicacy container on Unraid

My goal is to backup my unraid server to another unraid server on the same network. I assume I need to use the SFTP protocol. I created the ssh keys and they are in the root/.ssh folder on both servers. However, no matter how I setup permissions/access in the Duplicacy container, I can’t access the key from the GUI.

Specifically, inside the key selector in the GUI, when I navigate to the /backuproot/root/.ssh folder I get this error: “Failed to list the directory: open /backuproot/root/.ssh: no such file or directory”

I attached a screenshot of my container settings in unraid.

Processing: duplicacy unraid container settings.pdf…

You can use sftp, but you don’t have to.

Who owns the key files? Root or duplicacy user? It can’t be owned by both, so this is not a viable solution.

I would recommend creating a new key pair for exclusive duplicacy use, and placing the private key into /config folder that is mapped into the container. You can also mount it directly into the containers ~/.ssh but I think duplicacy-web does not care about where the keys are as long as they are accessible.

Thank you for your quick response! I’m learning linux basics as I setup my new unraid servers, so I appreciate helpful “mentors”.

So, now my plan is this:

  • Create a user on the source server that is specifically for backup purposes and make shares read-only (named user-backup-server)

  • Create a key pair on the source server while signed in as “user-backup-server” (instead of root). The keys will be placed in the duplicacy/appdata/config folder.

  • Copy the public key to the destination server. Should this go in the standard root location for SSH keys?

  • In Duplicacy, I’m not sure what I should enter in the SFTP configuration fields. Please see questions in attached screenshot.

Thanks again for your help!!

Questions about Duplicacy fields for SFTP|573x500