Skip to content

SSH agent keys get removed even when other databases are closed #4532

@snstamml-tio

Description

@snstamml-tio

Expected Behavior

SSH agent keys from databases B, C, D... should not be removed from the key agent when database A is closed. Only keys from database A should be removed.

Current Behavior

When closing database A, SSH agent keys from database B (or any other database) registered with the key agent are removed.

Possible Solution

Check from which database an agent key derives from, and remove only those that come from the database that is being closed.

Steps to Reproduce

  1. Create and open databases A and B
  2. Create an entry in database B with a "SSH Agent" key and click "Add to agent"
  3. Check the key list in the SSH agent (e.g. Pageant on Windows)
  4. Close database A
  5. Check the key list in the SSH agent

Context

Every time any database is closed, all keys from the other databases need to be manually re-added to the key agent.

Debug Info

KeePassXC - Version 2.5.3
Revision: f8c962b

Qt 5.13.2
Debugging mode is disabled.

Operating system: Windows 10 (10.0)
CPU architecture: x86_64
Kernel: winnt 10.0.18363

Enabled extensions:

  • Auto-Type
  • Browser Integration
  • SSH Agent
  • KeeShare (signed and unsigned sharing)
  • YubiKey

Cryptographic libraries:
libgcrypt 1.8.5

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions