Usage with Tailscale on MacOS #32

Closed
opened 2025-12-29 01:20:28 +01:00 by adam · 3 comments
Owner

Originally created by @projx on GitHub (Sep 10, 2021).

Hey

Could add some clue how to use this with the MacOS TailScale client? It seems the GUI client needs to be loaded and logged in before I can use the CLI command, but then this mean I cannot run the following, as it is already authenticated to TailScales hosted controller.

/Applications/Tailscale.app/Contents/MacOS/Tailscale up -login-server <> --authkey

If I run the following, it forces the client to logout, but it doesn't reconnect:

/Applications/Tailscale.app/Contents/MacOS/Tailscale up -login-server <> --authkey --reset --force-reauth

Thank you

Originally created by @projx on GitHub (Sep 10, 2021). Hey Could add some clue how to use this with the MacOS TailScale client? It seems the GUI client needs to be loaded and logged in before I can use the CLI command, but then this mean I cannot run the following, as it is already authenticated to TailScales hosted controller. /Applications/Tailscale.app/Contents/MacOS/Tailscale up -login-server <> --authkey <KEY> If I run the following, it forces the client to logout, but it doesn't reconnect: /Applications/Tailscale.app/Contents/MacOS/Tailscale up -login-server <> --authkey <KEY> --reset --force-reauth Thank you
adam closed this issue 2025-12-29 01:20:28 +01:00
Author
Owner

@kradalby commented on GitHub (Sep 14, 2021):

Hi @projx, to get it working on my machine, I would:

  1. Start the UI client (but not log in)
  2. /Applications/Tailscale.app/Contents/MacOS/Tailscale up -login-server https://headscale.example.no --accept-routes --authkey $KEY

This seem to work for me without having to force a reauth, I have never logged in with the official Tailscale service. You might be able to get all of that deleted so its fresh.

Whenever I reboot, I usually need to run /Applications/Tailscale.app/Contents/MacOS/Tailscale up -login-server https://headscale.example.no

@kradalby commented on GitHub (Sep 14, 2021): Hi @projx, to get it working on my machine, I would: 1. Start the UI client (but _not_ log in) 2. `/Applications/Tailscale.app/Contents/MacOS/Tailscale up -login-server https://headscale.example.no --accept-routes --authkey $KEY` This seem to work for me without having to force a reauth, I have _never_ logged in with the official Tailscale service. You might be able to get all of that deleted so its fresh. Whenever I reboot, I usually need to run `/Applications/Tailscale.app/Contents/MacOS/Tailscale up -login-server https://headscale.example.no`
Author
Owner

@kradalby commented on GitHub (Sep 21, 2021):

For the brave, have a look at #113 and you can generate a profile that overrides the default login server. Currently macOS works and it allows you to not have to fiddle with the command line.

@kradalby commented on GitHub (Sep 21, 2021): For the brave, have a look at #113 and you can generate a profile that overrides the default login server. Currently macOS works and it allows you to not have to fiddle with the command line.
Author
Owner

@kradalby commented on GitHub (Sep 24, 2021):

I have updated #113 with more details on setting up macOS. Feedback would be appreciated.

@kradalby commented on GitHub (Sep 24, 2021): I have updated #113 with more details on setting up macOS. Feedback would be appreciated.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#32