3 ms·
It would be really nice if there was an "ssh update" feature similar to ssh-copy-id but built into the ssh command itself. So I could somehow indicate to SSH on
by bombcar 6y ago
It would be really nice if there was an "ssh update" feature similar to ssh-copy-id but built into the ssh command itself. So I could somehow indicate to SSH on my machine that key_2 is a replacement for key_1 - and any host that I ssh into that has key_1 in authorized_keys should be replaced with key_2 (and leave everything else the same).
That way I could rotate keys and painlessly update them (and still have the old key for rarely accessed machines).
Sure it's not perfect, but it's a sight better than never rotating.
I wonder if there's something similar for the ssh_host_key - somehow to say "old key is deprecated but still here so ssh doesn't scream bloody murder, but use the new key from now on".
- jlgaddis 6y ago> I wonder if there's something similar for the ssh_host_key ... There is, since version 6.8 (~6 years ago) [0]. Make sure you have "UpdateHostkeys" set to "yes" (or "ask") on the client side. It was off by default when it was first added but I think I remember reading at some point that it changed to enabled by default. -- [0]: https://lwn.net/Articles/637156/ https://lwn.net/Articles/637156/