SFTP key location for linux docker

English Support for Syncovery on Linux etc.
Post Reply
Jean-Michel
Posts: 28
Joined: Fri Jun 10, 2022 2:12 pm

SFTP key location for linux docker

Post by Jean-Michel »

Hello

I am running a Syncovery 10.17.2 in a docker image based on Ubuntu 20.04
I'm trying to setup a SFTP side based on user + public key

I have added an entry in Program Settings -> Keys
And I am referring to that entry into the profile's Security / Private Key for User Authentication
Also the box "No password needed" is checked

The private key is available in the docker image in /root/.ssh/ with the appropriate access rights (400)
running bash in the docker (docker exec -ti syncoverycl bash) I can open the SFTP connection correctly

Still, from Syncovery web UI, when I try to get the list of folders from the SFTP, I get the message
"Unable to use key file "xxxxx" (Unable to open file)"

I also tried to put the file in the config/.Syncovery/.ssh/ folder but still the same problem

Where should I put the private key for Syncovery to find it ?

It would be convenient that the UI allows to upload the key from the UI as there are cases where we run the Syncovery from a FARGATE task with no ability to SSH into it

Thanks
tobias
Posts: 1945
Joined: Tue Mar 31, 2020 7:37 pm

Re: SFTP key location for linux docker

Post by tobias »

Hello,
on Program Settings -> Private Keys, you need to specify the complete path to the private key file and save it.

So the path can be any. It's your choice.

Yes an import feature would be great, I hope I can add it.
Jean-Michel
Posts: 28
Joined: Fri Jun 10, 2022 2:12 pm

Re: SFTP key location for linux docker

Post by Jean-Michel »

Ah perfect
works like a charm

So the /config folder of the container is mounted on a config folder on my host
I have created a .ssh folder in /config/.Syncovery/ and moved the key there

I had to enter the container (docker exec bash) to setup the rights as needed (chown root and chmod 400) and now everything works fine

Definitively an option to upload the keys (as file or copy/paste) from the web UI would be nice when running out of FARGATE (we already have one licensed one running on a FARGATE but not using SFTP on this one for now)
This one is running on a standard EC2 because we need a fixed IP address and it's easier to achieve on EC2 than on FARGATE.

A new pro license on its way :D ...
Thanks
Post Reply