A server works for months, then half a year later it drops off the tailnet, with no warning that I can see in the docs. It’s not a bug: every device has a node key, and that key expires. Since a lot of my containers on Unraid run behind Tailscale, I’d much rather learn this from a blog than from a dead remote connection. This guide covers what expiry does, how to turn it off for servers, how to check the result, and how auth keys and tags fit in. You need admin access to the Tailscale admin console and, for the commands, a Linux box with the Tailscale CLI.
- Time
- 11 min
- Steps
- 10
- Updated
- 26 Nov 2026
You will learn
- What expires, and when
- Fix 1: disable key expiry on servers
- Fix 2: tag the device
- Auth keys: enrolling without a browser
- Check that it worked
Step 1 of 10: What expires, and when
There are two different clocks, and mixing them up is where most confusion starts. The node key is what a device uses to identify itself to the tailnet. The docs say new tailnets have a default key expiry of 180 days, and when a key expires, connections to and from that device stop working. The device is not deleted; it just needs to authenticate again. The docs page does not mention any warning notification, so I wouldn’t count on one.
The auth key is only the ticket used to enrol a device without a browser. It has its own, shorter life, and it matters far less once the device is in. More on that below. The animation shows the node key problem: two servers enrolled on the same day, one with expiry on, one with it off.

Step 2 of 10: Fix 1: disable key expiry on servers
For a machine that must always be reachable, such as a home server, turn the expiry off. In the admin console open Machines, find the device, open the menu at the far right and select Disable Key Expiry. The same menu has Enable Key Expiry if you change your mind. The screenshot is from the Tailscale docs and shows the menu entry.
The docs name trusted servers, subnet routers and hard-to-reach remote IoT devices as the usual candidates. I’d do it for the server and for any subnet router, and leave it on for laptops and phones, where expiry is a decent safety net if one gets lost.


This is my own Machines page. I have 51 machines, and the four on screen are servers: three Unraid machines and a Raspberry Pi that runs AdGuard Home. All four carry an Expiry disabled badge under their name, and the two that advertise subnets have a Subnets badge next to it. The badge is how you audit the list. Any row without it is a device that will ask for a new login when its key runs out, which is fine for a laptop and not fine for a server.

The menu behind the three dots changes with the state of the key. On a machine whose expiry is already off, the entry reads Enable key expiry, so the label tells you the current state. Next to it you find Edit ACL tags, which is the other route from the next section, and Edit route settings for subnet routers.
Step 3 of 10: Fix 2: tag the device
Devices that use tags have key expiry disabled by default. When a device is tagged and authenticates for the first time, expiry is off. Changing tags afterwards does not change expiry unless you re-authenticate, and re-authenticating disables it. A tag has to exist in tagOwners in the policy file first; my ACL guide shows how.
sudo tailscale up --auth-key=tskey-auth-xxxx --advertise-tags=tag:server
Remember the trade-off from the tags docs: applying a tag removes the user-based identity. A device has tags or a user, not both. So tags are for servers and other non-human machines, never for your own laptop.
Step 4 of 10: Auth keys: enrolling without a browser
An auth key registers a device without the interactive login, which is what you want for servers and containers. You generate one on the Keys page of the admin console (select Generate auth key) and use it like this:
sudo tailscale up --auth-key=tskey-auth-xxxx
Keys are case-sensitive, so paste them carefully. The options I care about:
- Expiry: an auth key lasts 1 to 90 days, and 90 is the default if you pick nothing. This is the key’s own life, not the device’s.
- Reusable: works for several devices. One-off keys are revoked automatically after a single use.
- Ephemeral: the device is removed automatically after it goes offline. Good for throwaway containers.
- Pre-approved: skips manual approval when device approval is on.
- Tags: devices that enrol with the key get these tags.
Without tags, the device logs in as the user who generated the key. With tags, it takes the identity of the tags. And an expired auth key only stops you from enrolling new devices with it: a device it already authorised stays authorised until its own node key expires. Treat a reusable key like a password, because anyone holding it can join your tailnet. The cheat sheet sums up the two clocks.


Auth keys and API access tokens live on the same page, Settings, Keys, in two separate lists. In my tailnet both lists are empty at the moment, so no auth key is waiting to be used or forgotten. You mostly need auth keys when you create devices often, from a script or a container template.

The Generate auth key dialog shows everything you can decide. The description is optional, but fill it in anyway: a list of keys without names is hard to clean up. Reusable is off by default, so the key works once. The expiration box defaults to 90 days and accepts 1 to 90, and the text next to it repeats that this does not affect the node key expiry of any machine enrolled with it. Under Device settings you find Ephemeral and Tags. The Tags switch carries a note I like: devices that use the key are tagged automatically, and that also disables node key expiry for them. So the dialog already shows the link between the two sections of this guide.
One option from the docs is missing in my screenshot: Pre-approved. It only makes sense when device approval is on, and on the Device management page in my tailnet the Manually approve new devices switch is off. If you do use device approval, expect the extra switch to appear.
Step 5 of 10: Check that it worked
Right after enrolling, run this on the device:
tailscale status
The device should be listed and online, and you should see its tailnet peers. Then open Machines in the admin console and look at the row for the device. If you disabled expiry or tagged it, the row should no longer show an expiry date; check the exact wording in your version of the console, as I can’t promise the label. The tags show up on the same row for a tagged device.
The slower test is the real one: look again after the original expiry period has passed. I can’t do that for you in a guide, but a device that survives its first 180 days is proof enough.

You can prove the state from the command line without opening the console. tailscale status --json prints everything the client knows, and jq picks out the parts that matter. The first command shows my laptop: its key expires on 15 May 2027, which is 180 days after the login, as the default says. The second shows adguard2, one of the servers from the screenshot above, and its KeyExpiry is null. Null means there is no expiry date at all. Run the same two commands on your own tailnet and you see the difference at once.
If you want a list of every peer with an expiry date, drop the select and print the host name next to the date: tailscale status --json | jq '.Peer[] | {HostName, KeyExpiry}'. Any peer that is not null will need a login on that date.
Step 6 of 10: Change the default period
If you’d rather keep expiry on but want it shorter or longer, open the Device management page of the admin console and find the Key Expiry section. You can pick 1 to 180 days and select Save. The change only applies to devices that log in after you make it; devices already logged in keep their current expiry until their next login. I’d leave the default for people and fix the servers individually.
One more clock for completeness: a browser session on the admin console expires after 30 days, but the docs say that is unrelated to key expiry.

This is the page for the default. It sits under Settings, Device management, next to Device Approval and Tailnet Lock. The field accepts 1 to 180 days, and the Save and Reset buttons stay grey until you change the number. Remember that a new value only reaches devices when they log in again. If you shorten it from 180 to 30 days today, the servers you already disabled expiry for stay unaffected, which is exactly what you want.
Step 7 of 10: If it already happened
On a device with the CLI, run sudo tailscale up --force-reauth and sign in again. The docs warn this can bring the connection down, so don’t do it over an SSH session that runs through Tailscale. For a remote device nobody can reach easily, an admin can pick Temporarily extend key in the Machines menu; that entry only appears for devices with expired keys. That gives a 30 minute window, and the device owner must reauthenticate in that time, or you disable key expiry for the device. After it reauthenticates, the key is renewed for your normal expiry period. If the device already has a new sign-in URL, the menu shows Reauthorize machine instead.

Step 8 of 10: Troubleshooting
- The key is rejected: check for a copy-paste error. Tailscale-generated auth keys are case-sensitive, and a one-off key that was already used is gone.
- I can’t remove a tag with
--advertise-tags: the tags docs say that doesn’t work for a device that used an auth key. Generate a new auth key with the full set of tags instead. A tagged device also needs at least one tag. - I changed the tags and expiry stayed as it was: that’s documented. It only changes when you re-authenticate, and re-authenticating disables expiry.
- A throwaway container keeps piling up in Machines: use an ephemeral key, so it disappears after it goes offline.
Step 9 of 10: A ten minute audit for your own tailnet
- Open Machines and scroll through the list. Write down every server, subnet router and container host that has no Expiry disabled badge.
- For each one, open the menu and choose Disable key expiry. A device that keeps the expiry should be one you can walk up to.
- Run
tailscale status --json | jq '.Self.KeyExpiry'on a few of them to confirm the value is null. - Open Settings, Keys and delete auth keys you no longer use. A key that is not needed is only a risk.
- Put the date of the first expiring device in your calendar, with a note on how to log it in again.
Ten minutes now is cheaper than finding out half a year later that the connection to your home server is gone, with nobody at home to press a button.
Step 10 of 10: My advice
Disable expiry on every server and subnet router today, and leave it on for anything a person carries around. If you enrol machines by script, tag them and use a short-lived auth key, ideally one-off. The docs also point to OAuth clients with the Tailscale API as a neater way to create keys programmatically; I’d look at that once hand-made keys become a chore. Checked against the Tailscale docs in November 2026. The 180 day and 90 day limits are current values from the docs and can change, so check the pages if it matters.
Related: my guide on ACLs and tags.
Further reading
- Tailscale docs: Key expiry
- Tailscale docs: Auth keys
- Tailscale docs: Tags
- Tailscale docs: OAuth clients
- Tailscale docs: Ephemeral nodes
- Tailscale docs: Tailscale CLI
- On this site: Lock down your tailnet with Tailscale ACLs and tags
- On this site: Put your VPS and its websites on your home network with Tailscale, and close everything except 80 and 443
- On this site: Manage your Unraid server from anywhere with Tailscale and no open ports
