mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-11 15:17:36 +00:00
The preauthkeys commands expect a user id instead of a username
This commit is contained in:

committed by
nblock

parent
46c59a3fff
commit
a98d9bd05f
@@ -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:
|
||||
|
Reference in New Issue
Block a user