DEV Community

Discussion on: How to Manage Multiple SSH Key Pairs

Collapse
 
lesha profile image
lesha 🟨⬛️ • Edited

If I have a single compromised key

The private key should never ever leave your computer. If you have single compromised key that means someone's been in your system and you might as well treat them all as compromised

Therefore, by having multiple keys you don't gain any additional security, you only gain additional headache each time you restart the system and have to ssh-add each one of them