步骤

  1. 打开https://login.tailscale.com/admin/settings/keys,添加一个新的Auth keys,并复制生成的密钥。
  2. 在macOS的终端中/Applications/Tailscale.app/Contents/MacOS目录执行以下命令,替换<your-auth-key>为你复制的密钥:
sudo tailscale up --authkey <your-auth-key>  --accept-dns=false

如果不加--accept-dns=false参数,可能会碰到如下提示:

吐槽

不知道为啥重启了系统以后Tailscale会提示

You are logged out. The last login error was: fetch control key Get "https://controlplane.tailscale.com/key?v=133": context canceled