Open plinto
Docs›Concepts

Hosts

Concept·4 min read
In one sentence

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.

RunsDebian 12 or 13, or Ubuntu 24.04, on x86-64 or ARM64
Addedby its address, or with cloud-init
Groupedin host groups, which environments deploy to

Add a host

In the Hosts app, Add host, in one of two ways:

The server needs systemd and an ed25519 host key. plinto then sets it up, and shows each step:

  1. Connect
  2. Check the server
  3. Host certificate
  4. sshd, which proves a second login works before it keeps the change
  5. deploy
  6. The agent
  7. Its first state
  8. The setup key out
  9. 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:

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.