Skip to content

Commit e845481

Browse files
committed
Replace ssh-proxy-ca
1 parent 5a13794 commit e845481

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed
Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,28 @@
11
---
22
{}
3-
43
---
54

6-
import { Render, Details } from "~/components"
5+
import { Render, Details } from "~/components";
76

87
1. [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

1413
2. 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

2221
3. 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

2928
4. Copy the `public_key` value returned in the response.

0 commit comments

Comments
 (0)