电脑技术 · 2026年4月4日 0

Linux 无图形界面登录 zero trust

Manual Enrollment (Headless Servers) 

If you are on a headless server without a browser, you must perform a “token-based” enrollment:

  1. Generate Token: On a device with a browser, go to https://<your-team-name>.cloudflareaccess.com/warp and authenticate.
  2. Extract Token: After successful login, you will see an “Open Cloudflare WARP” button. Right-click it, select “Inspect,” and copy the URL from the location.href or onClick attribute (e.g., com.cloudflare.warp://.../auth?token=...).
  3. Register on Server: Run the following on your headless machine:bashwarp-cli registration token "com.cloudflare.warp://<your-team-name>.cloudflareaccess.com/auth?token=<YOUR_TOKEN>" Note: The older command teams-enroll-token is being deprecated in favor of registration token or registration initialize-token-callback. 

3. Management Commands

Command Description
warp-cli registration showDisplays status, account type, and device ID.
warp-cli registration deleteRemoves the current registration.
warp-cli connectConnects the client to the Zero Trust network.