Hosts
A host is a server of your organization that plinto deploys to and lets your people log in to. plinto's agent on it keeps it set up.
Add a host
In the Hosts app, Add host, in one of two ways:
- The setup key: add your organization's setup key to the
authorized_keysof a user who cansudowithout a password, then give plinto the server's address. - The setup line: Make a setup line gives a line to run as root on one new server, and the same as cloud-init user-data, to paste where your cloud asks for it. It is good for 7 days. plinto never logs in to the server, so it may be on a private network or behind NAT.
The server needs systemd and an ed25519 host key. plinto then sets it up, and shows each step:
- Connect
- Check the server
- Host certificate
- sshd, which proves a second login works before it keeps the change
- deploy
- The agent
- Its first state
- The setup key out
- Ready
The server's host key is pinned the first time plinto sees it.
From a script
A script, Terraform or a CI job gets a setup line without anyone opening the Hosts app, with an API token limited to Register hosts, which does nothing else. An organization's admin makes one, under Specific permissions. An Admin token works too; plinto login's key doesn't, as it asks for what plinto does alone. The Hosts app's Add host shows the request too, under From a script.
$ curl -fsS -X POST https://hosts.plinto.build/hosts-api/join \
-H "X-Plinto-Key: $PLINTO_TOKEN" -H "Content-Type: application/json" \
-d '{"group": "web"}'
{
"userData": "#cloud-config\n…",
"url": "https://hosts.plinto.build/hosts-api/install/…",
"group": "web",
"expiresAt": "…",
"line": "curl -fsSL https://hosts.plinto.build/hosts-api/install/… | sudo sh",
"id": "kP3vX9qL2mR7tY4w"
}
Run line as root on the server, or give userData to your cloud's API as you create it. group is optional: without it, the server joins none. id is the line's, never its secret: the host it makes keeps it, so a script can tell which of its lines made which host. Ask for one line per server, as each lets one server in. A Read or Read and write token gets a 403, since a server it lets in gets what its groups run, their secrets with it.
$ line=$(curl -fsS -X POST https://hosts.plinto.build/hosts-api/join \
-H "X-Plinto-Key: $PLINTO_TOKEN" -H "Content-Type: application/json" -d '{"group": "web"}' | jq -r .line)
$ ssh debian@web-3.example.com "$line"
Host groups
A group is an ordered list of hosts, and a host can be in several. Environments deploy to groups, server by server, in their order; a host that joins a group gets what the group runs.
A group's hosts and settings are changed by the group's admins and the organization's: whoever makes a group is its admin. Putting a host into a group gives the group's people accounts on it, so it also takes a say in the host: the organization's admin, an admin of a group the host is already in, or, while it is in no group, whoever added it.
A group's Settings in the Hosts app:
- System services: deployments of a system service (
systemd = system) log in to its hosts as root, and images run there. - Number its hosts: a server set up into the group is named after it and its next number,
workers-1,workers-2and so on, whatever its host name says. A number is never given twice, so a server reinstalled and set up again gets a new one. Hosts already in the group, and those added to it later, keep their names. Add host on the group says so.
Who logs in
Access is given per group, in one of two roles:
| Role | Lets them |
|---|---|
| login | log in, and read the services' logs |
| admin | log in, read the logs, and sudo |
People log in with plain ssh, using a certificate that lasts a day: plinto login gets one, and so does Get a certificate in Your SSH access. plinto login also writes their organizations' hosts into known_hosts, each by its own key, in place of the lines it wrote before, so they never pin a host key by hand; a host added since their last login asks once, until the next one. (Before November 2026 this was one line starting with @cert-authority * and ending in plinto-hosts: plinto login takes it out, and it is safe to delete by hand.) Taking someone's access away revokes their certificates, ends their sessions and locks their account at once.
Each organization has its own certificate authority for its hosts, which plinto's deployments check a host by, together with the host's own key. Its admins can replace it under Your SSH access (Rotate, which only they see): every host takes a certificate of the new one by itself within a minute, deployments go on meanwhile, and nothing changes on anyone's laptop, as known_hosts holds hosts' keys and no authority.
The agent
A small service on each host that only talks out to plinto, over HTTPS, and listens on nothing. It applies the host's SSH settings, accounts and revocations within seconds, and updates itself: a new version runs on trial, and the one before comes back if it can't reach plinto.