{{define "title"}}{{.Title}}{{end}} {{define "content"}} {{$page := .Page}}
Mints a one-time enrolment token (TTL 1 hour) and binds the repo credentials to it. The token can only be used once — generate a fresh one if it expires or you typed something wrong.
{{if $page.Error}}Run the snippet below on the target box. The host will appear on the dashboard within a few seconds of the agent connecting.
{{if and $page.RepoUsername $page.RepoPassword}}echo '{{$page.RepoPassword}}' | sudo htpasswd -B -i /path/to/htpasswd {{$page.RepoUsername}}
curl -fsSL {{$page.ServerURL}}/install/install.sh | sudo \ RM_SERVER={{$page.ServerURL}} \ RM_TOKEN={{$page.Token}} bash