One SSH key per person: the detail that changes everything when you're a team
Published on 2026-09-12 by frfrand
Why sharing a private key ruins the entire model, how to add and remove keys without affecting anyone else, and what to do the day someone loses their laptop.

Short answer: sharing an SSH private key among several people means the server no longer knows who logged in, you cannot remove a single person without changing the key for everyone, and nobody knows how many copies exist. The correct approach is one key per person, and another for each machine like the CI: adding someone means adding their line to authorized_keys and removing them means deleting it.
There is a very common shortcut in small teams: an SSH key "for the project" is generated, stored in the shared password manager, and everyone uses it.
It works. And it dismantles almost everything good about SSH.
Why the shared key breaks the SSH model
SSH design is based on a premise: the private key identifies someone and never leaves their machine. If the key circulates, that premise disappears, and with it three properties:
It no longer identifies. The log says "deploy" logged in. You don't know who. After an incident, the question "who executed this?" has no answer.
It can no longer be revoked one by one. Removing access from one person means generating a new key and distributing it to everyone else. Since that annoys everyone, it gets postponed. And that's how someone who left eight months ago can still get in.
You don't know how many copies there are. A private key that went through a shared manager is on every laptop where someone downloaded it, and in any backup of those laptops.
What many people don't know
The reason it's shared is usually a misconception: that adding multiple keys is complicated, or that having many public keys on a server weakens it.
Neither is true.
The ~/.ssh/authorized_keys file is a list. One public key per line. You can have twenty and nothing happens, because a public key does not allow deducing the private one. That is the whole point of asymmetric encryption.
# ~/.ssh/authorized_keys ssh-ed25519 AAAAC3Nza... ana@laptop ssh-ed25519 AAAAC3Nza... bruno@laptop ssh-ed25519 AAAAC3Nza... ci-deploy
The final comment on each line (ana@laptop) has no technical function and is precisely what makes it maintainable: it's what allows you to know, six months from now, who each one belongs to.
How to add and remove
Add, from the person's machine:
ssh-copy-id ana@miservidor.com
Remove: delete their line from the file. That's it. No one else finds out, no one else has to change anything.
Compare that with the other model, where removing someone involves coordinating a change with the whole team. The difference isn't in how access is granted: it's in how much it costs to revoke it.
Machine keys are also people
A continuous integration server that deploys needs its own key, distinct from people's keys. Two reasons:
- If the CI system is compromised, you revoke that key without touching anyone.
- That key can have more limited permissions. With the
commandoption inauthorized_keysyou can force that key to only execute a specific script, without an interactive shell:
command="/usr/local/bin/deploy.sh",no-pty ssh-ed25519 AAAA...
It is one of the most useful and least used features of SSH.
The day someone loses their laptop
With keys per person, the procedure is short: delete that line on the servers where it was, and generate a new pair.
With a shared key, the procedure is to rotate the key for the entire project and coordinate with everyone. Which is exactly why, in practice, it is not done.
A recommendation that saves you that scare: put a passphrase on the private key. If someone steals your machine, the file alone is not enough. The SSH agent keeps it for the duration of your session, so you don't have to type it all the time.
How it's done in ArduMaker
In ArduMaker, public keys are loaded from the SSH Access app in the panel, and they all go to a single Linux user on the VPS (root, by default). The same advice from this article applies there: load one key per person and per machine, with a comment indicating who it belongs to, so removing someone is just deleting their line. What that scheme does not provide is identity: everyone enters as the same user. If you need to know who did what inside the server, create a Linux user per person (they are created from the panel, with a password) and add their key in their own authorized_keys.
Three more details. The app only touches its own block within authorized_keys, so keys that someone may have added manually remain as they were. A key pasted into the app cannot bring options like command=, so the restricted key of a CI is added manually, outside that block. And removing someone from the Company takes away their access to the panel, but does not delete their keys or their users on the VPS: that is done separately. What does remain associated with each person is every command executed from the panel or via the MCP.
It is the same idea as always: what defines a good access model is not how easy it is to grant permission, but how quickly it can be revoked.
One key per person and an offboarding procedure
When someone leaves a project, revoke their authorized public key and check if they had access to environment variables, repositories, or shared credentials. Removing only the SSH key may not be enough.
In ArduMaker you can organize access by team and client. To test the model, create two test users, grant different permissions, and verify that each one can only do what is intended. Document who authorizes and revokes access.
Related: Linux multiuser · Authentication vs authorization.
Frequently asked questions
Does having many keys in authorized_keys weaken the server? No. Each line is a public key, and the private key cannot be deduced from a public key.
What do I do if someone loses their laptop? Delete their line on every server where it was present and have them generate a new key pair. If the key had a passphrase, the file alone is not enough for whoever finds it.
How do I limit a key to a single command? With the command="..." option before the key in authorized_keys, along with no-pty. This is what is recommended for a CI key.
In ArduMaker, does removing someone from the Company revoke their SSH access? No. It removes them from the panel, but their keys and their Linux users on the VPS must be removed separately, from the SSH Access app and the VPS user list.