Secure way to use SFTP

Get help for specific problems
Posts: 3
Joined: 6 Nov 2026

jbgd

Hi,
Thanks for this great tool.

I am using several profiles to backup files to an SFTP. The profiles run via the Windows scheduler. This works fantastic.

But there is a security issue in this setup, the XML of the profiles contains the password to the SFTP in clear text (encoded in Base64). This means someone stealing my drive or accessing my backups will have access to this.

On the other hand I want the profiles to run unattended every day and not prompt me for the password each time they individually run.

What I tried was to save the profiles on an encrypted volume that I mount when I boot the computer in the morning. The encrypted volume is itself just a little file for truecrypt/veracrypt. This way I get encryption at rest and FreeFileSync can use the passwords without bothering me.

But there are two issues with this.

First the little encrypted volume itself won't sync because it's locked, so I can't backup the synchronization profiles themselves.

Secondly, it still creates the "LastRun.ffs_gui" in %appdata% which has the password to the SFTP in clear, so that doesn't solve the problem at all.

Is there a way to not save the last run?
Any one figured a way to have encryption at rest + unattended sync?
Posts: 210
Joined: 5 Jan 2024

John1234

Hi,

I haven't tried What you're trying to do myself, but I'm a good researcher and I think I have a solution that you can pursue that will solve your problem.

My notes, and it suggests that you use the Pageant option. I started the research for you. Now you have to finish it.

https://pzgg1fpeau.joplinusercontent.com/shares/kHB5igog4amLVMPHeK0LbJ
Posts: 3
Joined: 6 Nov 2026

jbgd

I should have mentioned it but I can't use SSH on this server, only password. So key files and pageant aren't options, I also looked into it. If I can't figure out any other way I might upgrade the server to be able to authenticate via SSH. Then I will store the key files in my encrypted volume.
Posts: 210
Joined: 5 Jan 2024

John1234

What if you used a separate program, a utility program, to mount the SFTP server independently of Free File Sync so you didn't have an exposed password?

I can make some recommendations if you're interested in this path.
Posts: 3
Joined: 6 Nov 2026

jbgd

Thanks for the suggestion. I have found the following solution:

For the "last run" file stored in AppData I created a Directory Junction so that the actual file is stored somewhere else under my control, this way FreeFileSync continues working as normal. Both this folder and the jobs XML are stored along my other sensitive configuration files in a veracrypt container that I mount once in the morning.

For the backup itself, I changed strategy, instead of using FreeFileSync to sync the files, I use restic to create an encrypted snapshot of the files, and then I use FreeFileSync to mirror the snapshot to the SFTP. This snapshot + mirror runs once a day from the scheduler.

This way everything is encrypted, on my local machine via veracrypt, and on the remote backup via restic. I also have a local backup of this and other less sensitive stuff that I synchronize with FreeFileSync to an external drive, so in case my primary drive fails I can still access the SFTP password and restore.