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

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

Open
outdooracorn opened this issue Mar 21, 2019 · 3 comments
Open

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

outdooracorn opened this issue Mar 21, 2019 · 3 comments

Comments

@outdooracorn
Copy link
Contributor

outdooracorn commented Mar 21, 2019

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

  • Show all SSH keys or all entries with SSH keys
  • Add/remove all SSH keys
  • Add/remove a selection of SSH keys

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 (Add Tag Feature  #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:

  • Advantages of solution 1. is you get to see useful info about the actual keys such as comment, size, type and fingerprint without clicking into the entry. Disadvantage is you might not be able edit the entry/SSH key from this view.
  • Advantages of solution 2/3. is it utilizes the same view as for searching (so familiar to users and I assume easier to develop) and can then click into an entry to edit. Disadvantage is that you have to click into the entry to view any info about the SSH key (which is what you are searching for).

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

  1. Once Add SSH key to agent from entry list #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
Copy link
Member

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

@hifi
Copy link
Member

hifi commented Mar 15, 2020

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
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants