{"id":1504,"date":"2026-04-04T18:44:13","date_gmt":"2026-04-04T10:44:13","guid":{"rendered":"https:\/\/www.cithwu.com:5444\/?p=1504"},"modified":"2026-04-04T18:44:13","modified_gmt":"2026-04-04T10:44:13","slug":"linux-%e6%97%a0%e5%9b%be%e5%bd%a2%e7%95%8c%e9%9d%a2%e7%99%bb%e5%bd%95-zero-trust","status":"publish","type":"post","link":"https:\/\/blog.cithwu.com\/wp5444\/linux-%e6%97%a0%e5%9b%be%e5%bd%a2%e7%95%8c%e9%9d%a2%e7%99%bb%e5%bd%95-zero-trust\/","title":{"rendered":"Linux \u65e0\u56fe\u5f62\u754c\u9762\u767b\u5f55 zero trust"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Manual Enrollment (Headless Servers)&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you are on a headless server without a browser, you must perform a &#8220;token-based&#8221; enrollment:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Generate Token:<\/strong> On a device with a browser, go to <code>https:\/\/&lt;your-team-name>.cloudflareaccess.com\/warp<\/code> and authenticate.<\/li>\n\n\n\n<li><strong>Extract Token:<\/strong> After successful login, you will see an &#8220;Open Cloudflare WARP&#8221; button. Right-click it, select &#8220;Inspect,&#8221; and copy the URL from the <code>location.href<\/code> or <code>onClick<\/code> attribute (e.g., <code>com.cloudflare.warp:\/\/...\/auth?token=...<\/code>).<\/li>\n\n\n\n<li><strong>Register on Server:<\/strong> Run the following on your headless machine:bash<code>warp-cli registration token \"com.cloudflare.warp:\/\/&lt;your-team-name>.cloudflareaccess.com\/auth?token=&lt;YOUR_TOKEN>\" <\/code><em>Note: The older command <code>teams-enroll-token<\/code> is being deprecated in favor of <code>registration token<\/code> or <code>registration initialize-token-callback<\/code>.<\/em>\u00a0<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">3. Management Commands<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><th>Command&nbsp;<\/th><th>Description<\/th><\/tr><tr><td><code>warp-cli registration show<\/code><\/td><td>Displays status, account type, and device ID.<\/td><\/tr><tr><td><code>warp-cli registration delete<\/code><\/td><td>Removes the current registration.<\/td><\/tr><tr><td><code>warp-cli connect<\/code><\/td><td>Connects the client to the Zero Trust network.<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Manual Enrollmen&#46;&#46;&#46;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-1504","post","type-post","status-publish","format-standard","hentry","category-9"],"_links":{"self":[{"href":"https:\/\/blog.cithwu.com\/wp5444\/wp-json\/wp\/v2\/posts\/1504","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.cithwu.com\/wp5444\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.cithwu.com\/wp5444\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.cithwu.com\/wp5444\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.cithwu.com\/wp5444\/wp-json\/wp\/v2\/comments?post=1504"}],"version-history":[{"count":1,"href":"https:\/\/blog.cithwu.com\/wp5444\/wp-json\/wp\/v2\/posts\/1504\/revisions"}],"predecessor-version":[{"id":1505,"href":"https:\/\/blog.cithwu.com\/wp5444\/wp-json\/wp\/v2\/posts\/1504\/revisions\/1505"}],"wp:attachment":[{"href":"https:\/\/blog.cithwu.com\/wp5444\/wp-json\/wp\/v2\/media?parent=1504"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.cithwu.com\/wp5444\/wp-json\/wp\/v2\/categories?post=1504"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.cithwu.com\/wp5444\/wp-json\/wp\/v2\/tags?post=1504"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}