18.06.2024・TechStuff
18.06.2024・TechStuff

NOT to do: Many (unnecessary) SSH keys

Fabian Blechschmidt

In the past (as a freelancer) I had the brilliant idea to have one SSH key per customer/server. So each time I got access to a new machine I created a new ssh key, configured it locally on my ssh config and used it. The problem with this is, once you change your machine, you break your config or want to cycle your keys at least I pretty quick lose my overview.

And there is no benefit in it.

It adds a ton of complexity to maintain all these keys. For some project I even had different keys for github and bitbucket which lead to git urls like:

git@github-projectname/... so the SSH client knows which key to use.

So, don’t make the mistake I did.