I’ve never tried it, but another option is ssh-tpm-agent or tpm2-pkcs11. Basically they use the TPM as a non-removable smart card, which is free and potentially more secure than a regular smart card because a smart card can’t normally verify the integrity of the OS that is talking to it. If you’re connecting from a Mac, Apple’s system is called Secure Enclave.
You can self host Bitwarden, which is what I assumed most people in this community do.
I’m not entirely sure why this got downvoted, it’s not a terrible idea to put your keys in your password manager rather than leave them on disk in plain text.
The title is misleading. There’s no problem with keeping ssh private keys on disk, there’s a problem with keeping private keys in cleartext. OpenSSH keys are always encrypted on your disk, unless you have no passphrase, which is just stupid and the very first thing you must solve.
Once you have a passphrase there is no problem. Of course don’t store the passphrase on disk, store it… in your password manager.
Your post is a solution to a problem that doesn’t exist and is a result of a lack of knowledge. Yet the blog post.
Normally if people are worried they store their keys encrypted on disk and use ssh-agent. Putting them in Bitwarden is a little less secure because you’re distributing the encrypted files to more places and likely decrypting them on multiple devices. But it is convenient.
So, instead of hosting your own SSH keys, you have a 3rd party host your SSH keys?
No, memorize them and type them in by hand every time you need them.
A 256 RSA key eh? Sure no problem.
Hmm… Almost like some kind of… password? 🤔
@KairuByte @Mordikan that’s what i did when working at eMudhra. Just gotta make sure the key is easy to memorize, like 4.
/s
This is the way.
Yeah if you are really concerned then use a yubikey or smart card.
I’ve never tried it, but another option is ssh-tpm-agent or tpm2-pkcs11. Basically they use the TPM as a non-removable smart card, which is free and potentially more secure than a regular smart card because a smart card can’t normally verify the integrity of the OS that is talking to it. If you’re connecting from a Mac, Apple’s system is called Secure Enclave.
You can self host Bitwarden, which is what I assumed most people in this community do.
I’m not entirely sure why this got downvoted, it’s not a terrible idea to put your keys in your password manager rather than leave them on disk in plain text.
The title is misleading. There’s no problem with keeping ssh private keys on disk, there’s a problem with keeping private keys in cleartext. OpenSSH keys are always encrypted on your disk, unless you have no passphrase, which is just stupid and the very first thing you must solve.
Once you have a passphrase there is no problem. Of course don’t store the passphrase on disk, store it… in your password manager.
Your post is a solution to a problem that doesn’t exist and is a result of a lack of knowledge. Yet the blog post.
Thanks for explaining.
Normally if people are worried they store their keys encrypted on disk and use ssh-agent. Putting them in Bitwarden is a little less secure because you’re distributing the encrypted files to more places and likely decrypting them on multiple devices. But it is convenient.