How to use the cli with sftp, without always getting prompted for the private key

Hello, I’m trying to use the cli for duplicacy via sftp but I keep getting prompted for the private ssh key.
Enter the path of the private key file

Is there a configuration that I can supply so that I don’t have to do this (I would like to make this a cronjob).

Of course, you can add ssh_key_file into .duplicacy/preferences manually like so:

.duplicacy/preferences
[
    {
        "name": "[edited]",
        "id": "[edited]",
        "repository": "",
        "storage": "sftp://[edited]",
        "encrypted": true,
        "no_backup": false,
        "no_restore": false,
        "no_save_password": false,
        "nobackup_file": "",
        "keys": {
            "ssh_key_file": ".duplicacy/id_rda_duplicacy",
            "[edited]_password": "[edited]"
        },
        "filters": ""
    }
]

or using the set command: Set command details

Awesome thanks!

PS. I’m not able to deduce what the set command would be. I’m guessing it would involve the -key arg but that typically seems to be used for encoding chunks.

In the bottom it has a section with saving credentials and examples with how to use the set command.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.