File tree Expand file tree Collapse file tree 1 file changed +13
-14
lines changed
src/content/partials/cloudflare-one/ssh Expand file tree Collapse file tree 1 file changed +13
-14
lines changed Original file line number Diff line number Diff line change 11---
22{}
3-
43---
54
6- import { Render , Details } from " ~/components"
5+ import { Render , Details } from " ~/components" ;
76
871 . [ Create an API token] ( /fundamentals/api/get-started/create-token/ ) with the following permissions:
98
10- | Type | Item | Permission |
11- | ------- | ---------------- | ---------- |
12- | Account | Access: SSH Auditing | Edit |
9+ | Type | Item | Permission |
10+ | ------- | ---- ---------------- | ---------- |
11+ | Account | Access: SSH Auditing | Edit |
1312
14132 . If you have not yet generated a Cloudflare SSH CA, make a ` POST ` request to the Cloudflare API:
1514
16- ``` bash
17- curl --request POST \
18- " https://api.cloudflare.com/client/v4/accounts/{account_id} /access/gateway_ca" \
19- --header " Authorization: Bearer <API_TOKEN> "
20- ```
15+ ``` bash
16+ curl --request POST \
17+ " https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID /access/gateway_ca" \
18+ --header " Authorization: Bearer $CLOUDFLARE_API_TOKEN "
19+ ```
2120
22213 . If you have already created a Cloudflare SSH CA or receive the error message ` access.api.error.gateway_ca_already_exists ` , make a ` GET ` request instead:
2322
24- ``` bash
25- curl https://api.cloudflare.com/client/v4/accounts/{account_id} /access/gateway_ca \
26- --header " Authorization: Bearer <API_TOKEN> "
27- ```
23+ ``` bash
24+ curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID /access/gateway_ca \
25+ --header " Authorization: Bearer $CLOUDFLARE_API_TOKEN "
26+ ```
2827
29284 . Copy the ` public_key ` value returned in the response.
You can’t perform that action at this time.
0 commit comments