Re:SSH keys stolen by stream of malicious PyPI and NPM packages
by fbdab103 on Monday December 11, 2023 @07:56PM
(#38607726)
Ah duh, keep the public part on the device.
However, that very quickly gets into the problem of untested backups. I am then relying completely upon a private key which has never been validated to work.
But yeah, if the main device is stolen, it can be a pain to go update all the services with the new device’s key.
I personally use the gpg app on my youbikey for this, and the secret key comes from a backup I install on a livecd.