From 00a5cce7fd70d9f171dd05b9312f0e001642da69 Mon Sep 17 00:00:00 2001 From: Florian Preinstorfer Date: Tue, 15 Jul 2025 21:37:27 +0200 Subject: [PATCH] The preauthkeys commands expect a user id instead of a username (cherry picked from commit a98d9bd05f9b5f02bd642d5853c75d87d708fb4a) --- docs/setup/install/container.md | 4 ++-- docs/usage/getting-started.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/setup/install/container.md b/docs/setup/install/container.md index 468f22bc..d8f6113b 100644 --- a/docs/setup/install/container.md +++ b/docs/setup/install/container.md @@ -112,11 +112,11 @@ docker exec -it headscale \ ### Register a machine using a pre authenticated key -Generate a key using the command line: +Generate a key using the command line for the user with ID 1: ```shell docker exec -it headscale \ - headscale preauthkeys create --user myfirstuser --reusable --expiration 24h + headscale preauthkeys create --user 1 --reusable --expiration 24h ``` This will return a pre-authenticated key that can be used to connect a node to headscale with the `tailscale up` command: diff --git a/docs/usage/getting-started.md b/docs/usage/getting-started.md index 78e058a9..7d2c62da 100644 --- a/docs/usage/getting-started.md +++ b/docs/usage/getting-started.md @@ -117,14 +117,14 @@ headscale instance. By default, the key is valid for one hour and can only be us === "Native" ```shell - headscale preauthkeys create --user + headscale preauthkeys create --user ``` === "Container" ```shell docker exec -it headscale \ - headscale preauthkeys create --user + headscale preauthkeys create --user ``` The command returns the preauthkey on success which is used to connect a node to the headscale instance via the