Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check if ssh agent actually provides requested key if it is password protected #2143

Open
renner0e opened this issue Nov 19, 2024 · 1 comment
Labels
status:idea Proposed feature, discuss if its useful

Comments

@renner0e
Copy link
Contributor

renner0e commented Nov 19, 2024

The problem

I use password protected ssh key files with vorta.
I use keepassxc as my ssh-agent. So when I unlock my database only then my SSH keys can actually be used.

When the server is reachable but the SSH key is not unlocked then vorta gives this error:
ERROR - Connection closed by remote host. Is borg working on the server?

So when I boot up my PC (Vorta is in autostart and is set to Backup Daily and runs missed updates) Vorta immediately wants to run backups.
I have no time to unlock my database before Vorta runs.

This would be very convenient as I would probably never have to run a manual backup again.

Requested Solution

Add an option to configure either on a per repo/key basis to check if the ssh agent has that requested key in it and if does, run the backup.
If not, try it again if the key is available later -> Error if certain threshold/max tries is passed.

Vorta checks in the background when the SSH agent provides the key for the missed backup?

Alternatives

A delay after autostart would probably also work but is certainly not ideal.

I could probably get the borg command from vorta logs and use a systemd timer/cron/whatever and another script that checks which ssh keys are in the agent but I'd have to update the script each time I change some option in vorta.

I want to avoid using non protected SSH keys.

Additional context

Fedora Linux 41
Vorta Flatpak from flathub

@m3nu m3nu added the status:idea Proposed feature, discuss if its useful label Nov 20, 2024
@m3nu
Copy link
Contributor

m3nu commented Nov 20, 2024

Related: #2133

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:idea Proposed feature, discuss if its useful
Projects
None yet
Development

No branches or pull requests

2 participants