mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-10-22 20:16:22 +00:00
Move step-by-step guides into headscale/docs/, slim README to a quick reference, and use $HEADSCALE_CONTAINER for docker exec commands. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
650 B
Markdown
18 lines
650 B
Markdown
# Revoke a Compromised Device
|
|
|
|
[← Back to README](../README.md)
|
|
|
|
Commands below use `$HEADSCALE_CONTAINER`. Set it once per shell session on the dedicated server (change the value if your compose project name differs; find it with `docker ps`):
|
|
|
|
```bash
|
|
export HEADSCALE_CONTAINER=headscale-headscale-1
|
|
```
|
|
|
|
```bash
|
|
docker exec -it "$HEADSCALE_CONTAINER" headscale nodes list
|
|
docker exec -it "$HEADSCALE_CONTAINER" headscale nodes delete -i <NODE-ID>
|
|
docker exec -it "$HEADSCALE_CONTAINER" headscale preauthkeys expire --user homelab <KEY> # if the key leaked too
|
|
```
|
|
|
|
The device is cut off immediately; re-join later with a fresh key if needed.
|