keepassxreboot / keepassxc

KeePassXC is a cross-platform community-driven port of the Windows application “Keepass Password Safe”.
https://keepassxc.org/
Other
20.25k stars 1.42k forks source link

View all SSH keys or all entries with SSH keys #2822

Open outdooracorn opened 5 years ago

outdooracorn commented 5 years ago

Summary

At the moment it takes a while to add/remove SSH keys to/from the ssh-agent as you have to go to the SSH Agent tab of each entry. Having a way to view all the SSH keys or all the entries with SSH keys would speed up adding/removing all or specific SSH keys.

Desired Behavior

Possible Solutions

In no particular order but numbered so can be referenced:

To implement showing all keys/entries with keys:

  1. Click on an icon to display a popup of all the SSH keys. This would be similar to how the KeeAgent plugin of KeePass2 does it. Screenshot: KeeAgent plugin of KeePass2
  2. Click an icon to display all the entries that have SSH keys. Could utilise the same view when searching for entries. This could also work with special search parameter like "HAS_SSH_KEY:TRUE".
  3. If tags (#508) were implemented you could tag all the entries with SSH keys and then search on that tag. Would also be able to tag and search for a specific category of keys (e.g. work, personal, client-abc etc.).

As I currently see it:

To implement adding all/selected keys to the ssh-agent:

  1. Once #1815 is implemented. Highlight keys/entries that want to be added/removed from the ssh-agent. Right click Add/Remove key to SSH agent OR Ctrl+H shortcut.
droidmonkey commented 5 years ago

I like this, it should be a part of the database settings (and the future database info) view.

hifi commented 4 years ago

The suggestion to simplify this into a search filter that shows only entries that has a key configured would be the fastest to implement. With #4290 merged managing keys from the entry list is easy.

You can, however, already do this manually by using a unique search string and add that into every entry (like "ssh") and with #4290 it works pretty much like that then.

outdooracorn commented 4 years ago

I think that would be an acceptable solution. I've not tested out #4290 but the screenshot looks good, thanks 👍