Announcing sshexport
esr.ibiblio.org
esr.ibiblio.org
Yes, but they don't have access to my password. That's kind of the point. Having a password-protected private key file is much less useful without the password. If you're going to store the password, might as well just remove it and save yourself the trouble.
Eg. your average shoulder surfing/xscreensaver unlock bypassing jerk, hacker or piece of malware isn't going to bother checking if an already mounted filesystem happens to be on an encrypted block device and voluntarily decide not to copy all your private keyfiles.
I struck a small blow for better security today.
Good old ESR. Taking a bow for writing an expect script.(1) Disabling password auth (which this appears to rely on) is literally the second thing I do on a new machine (the first being to add the relevant pubkey(s), so I don't get locked out), and
(2) My SSH private keys all have a passphrase set (they may or may not be stored in ssh-agent at any given time, but that's irrelevant if I'm trying to automate this). So, using the old keys to log in and rotate to the new keys is also out.
I don't see how I manage key rotation without manual intervention at some point, which means I'll either forget to do it sometime, or I'll manage to mess it up and lock myself out of machines.
Also, it's far better to have the pubkeys stored in a filesystem location (I.e not in the users home directory) that the ssh daemon has read access to, and no-one outside of root/config management has write access to.
I'm half-surprised no one else had written something like this before. It's a common enough problem.
[0] https://github.com/stevenkaras/bashfiles/tree/master/.ssh
For anyone who wants to enforce ssh key rotation, consider using our product Foxpass (YC S15), which (effectively) automatically removes keys after a set amount of time (e.g. 90 days).
https://lists.gnu.org/archive/html/emacs-devel/2014-01/msg00...
It was especially amusing when the the repository was initially deployed unpacked.
https://lists.gnu.org/archive/html/emacs-devel/2014-11/msg00...
It took almost a year to complete but I am really glad he was able to make this happen.
In browsing his site it's safe to say he's certainly been keeping busy. Can't wait to check out his hist post titled "Why I joined the NRA".