Ask HN: One SSH key or many SSH keys?
Is there any benefit to using multiple, separate keys to authenticate to different resources versus only using a single SSH key?
On one hand, I've heard that an SSH key is supposed to represent an identity, so using your "identity" everywhere makes sense.
On the other hand, I've heard that keeping SSH keys separate is important in the same way using separate passwords for different resources is important.
What do you all think?
7 comments
[ 0.27 ms ] story [ 8.7 ms ] threadhttps://smallstep.com/blog/use-ssh-certificates/
It's slightly more painful to setup, but you get more flexibility later on in case you loose one key you have the other, and in case you need to cancel just one you can.
If you use hardware security keys, you get one per device naturally.