posted in Selfhosted
You can't afford to keep your SSH keys on disk
cross-posted from: lemmy.bestiver.se/post/1462999
jola.dev/posts/you-cant-afford-ssh-keys-disk
posted in Selfhosted
You can't afford to keep your SSH keys on disk
cross-posted from: lemmy.bestiver.se/post/1462999
jola.dev/posts/you-cant-afford-ssh-keys-disk
Replying to @taco_shale032@lemmy.ml
So, instead of hosting your own SSH keys, you have a 3rd party host your SSH keys?
Replying to @Mordikan@kbin.earth
Yeah if you are really concerned then use a yubikey or smart card.
Replying to @bhhaskin@lemmy.bitsofsimplicity.com
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.
Replying to @i_am_not_a_robot@discuss.tchncs.de
However the “non removable” part gets you back to being susceptible to malware. If you are afraid malware can read your disk, then malware can further submit signing requests to any online ssh key mechanism.
So having a removable device at least means you know beyond any shadow of a doubt that not only is your key credibly protected, but use of your key is outright impossible when not plugged in.