How to look after keys and machines¶
Most of this happens by itself. This page covers what doesn't.
allmyram info shows the state of every key, certificate, runner and sink.
A runner's certificate expired¶
A host certificate lasts 30 days and renews whenever the laptop connects with under 10 days left. After a long absence, run:
A client key may have leaked¶
If it is this laptop's key, replace it. The new key works at once on every runner.
For any other client key, revoke it everywhere. KEY is a .pub file or a
quoted authorized-key line.
Runners it can't reach get the revocation on the laptop's next connection;
run revoke again to retry them now.
The owner key is lost¶
This includes a Secretive key that a change of fingerprints invalidated.
- Make a new owner key.
- Run
allmyram init --new-ownerwith it. Every runner is dropped. - Rejoin each Linux and
Mac runner with
--join, and add the sink again. A join under a new owner key drops the revocations, the sink record and the telemetry kept under the old one.
You no longer want a runner¶
Nothing changes on the runner, which keeps admitting the laptop's key. To retire the machine, uninstall it there (Linux, Mac).
A certificate is refused because of the clocks¶
- Read the gap the client reports, and the runner's log line with both
times (the journal on Linux,
runner.logon a Mac). - Find the wrong clock:
allmyram infoshows the laptop's last NTP check, and the runner's log shows its own. - Fix that clock, for instance by enabling chrony or systemd-timesyncd on the runner.
If you want another NTP server, or none, set ntp_server in client.json
or the runner's runner.json. Certificates and
clocks has the rules.
Clients can't reach a runner after a relay region was retired¶
A runner keeps the tailcat relay (DERP) region it chose when it joined. If
Tailscale retires that region, delete the runner's tailcat-key.json and
rejoin it: