Compare commits

..

2 Commits

Author SHA1 Message Date
Florian Preinstorfer
00a5cce7fd The preauthkeys commands expect a user id instead of a username
(cherry picked from commit a98d9bd05f)
2025-07-16 09:53:58 +02:00
Florian Preinstorfer
4d89030701 Set doc version to 0.26.1 2025-06-07 11:08:54 +02:00
3 changed files with 5 additions and 5 deletions

View File

@@ -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:

View File

@@ -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 <USER>
headscale preauthkeys create --user <USER_ID>
```
=== "Container"
```shell
docker exec -it headscale \
headscale preauthkeys create --user <USER>
headscale preauthkeys create --user <USER_ID>
```
The command returns the preauthkey on success which is used to connect a node to the headscale instance via the

View File

@@ -107,7 +107,7 @@ extra:
- icon: fontawesome/brands/discord
link: https://discord.gg/c84AZQhmpx
headscale:
version: 0.26.0
version: 0.26.1
# Extensions
markdown_extensions: