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

Store SSH private key in a text field #11696

Closed
1 task done
alensiljak opened this issue Jan 25, 2025 · 2 comments
Closed
1 task done

Store SSH private key in a text field #11696

alensiljak opened this issue Jan 25, 2025 · 2 comments

Comments

@alensiljak
Copy link

alensiljak commented Jan 25, 2025

Have you searched for an existing feature request?

  • Yes, I tried searching

Brief Summary

I'd like to be able to store the private SSH key in a text field instead of attaching it as a file.

Perhaps I've missed the discussions (I did search for these terms) but I'm wondering why do private SSH keys get attached as files and not simply copy/pasted into a text field. They are text content, anyway.
I do find it very convenient to have the SSH entry linked to an external file and this works great. Now I'd like to actually move my private keys into the KeePass database so that there is less risk of retrieving them as plain-text-files. This is possible by attaching them inside the database. But I can't help wondering whether it would be possible to simply copy/paste them into a field. They can be served to the agent as files on the fly, if needed.

Example

In the Settings for SSH Agent, section "Private key" - besides the options Attachement and External file, add an option to paste the private key into a text box. Similar to the Public key field, which is read-only.

Context

Checking and exporting of keys from text fields is easier and the key management more straightforward.
The paths of external files sometimes change, requiring updating of all the related records in the keepass database.

There seem to be issues with people exporting the database and this would also alleviate that problem.

@droidmonkey
Copy link
Member

This was recently implemented: #11637

@alensiljak
Copy link
Author

Ah, how convenient! Thanks!

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

No branches or pull requests

2 participants