Skip to content

Commit cf500af

Browse files
ranbelharshil1712
authored andcommitted
add example text (#18340)
1 parent f742068 commit cf500af

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

src/content/partials/cloudflare-one/ssh/modify-sshd.mdx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,19 @@ The following procedure makes two changes to the `sshd_config` file on the remot
1616
# PubkeyAuthentication yes
1717
```
1818

19-
3. Remove the `#` symbol to uncomment the line; keep the setting `yes` enabled.
19+
3. Remove the `#` symbol to uncomment the line:
2020

21-
4. Next, add a new line below `PubkeyAuthentication` as follows:
21+
```txt
22+
PubkeyAuthentication yes
23+
```
24+
25+
4. Add a new line below `PubkeyAuthentication`:
2226

2327
```txt
2428
TrustedUserCAKeys /etc/ssh/ca.pub
2529
```
2630

27-
Save the file and quit the editor. You might need to use the following command again to save and exit.
31+
5. Save the file and quit the editor. You might need to use the following command again to save and exit.
2832

2933
```txt
3034
:w !sudo tee %

src/content/partials/cloudflare-one/ssh/public-key.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616

1717
3. In the `ca.pub` file, paste the public key without any modifications.
1818

19+
```txt title="ca.pub"
20+
ecdsa-sha2-nistp256 <redacted> [email protected]
21+
```
22+
1923
The `ca.pub` file can hold multiple keys, listed one per line. Empty lines and comments starting with `#` are also allowed.
2024

2125
4. Save the `ca.pub` file. In some systems, you may need to use the following command to force the file to save depending on your permissions:

0 commit comments

Comments
 (0)