File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
src/content/partials/cloudflare-one/ssh Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff 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 %
Original file line number Diff line number Diff line change 1616
17173 . 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
21254 . 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:
You can’t perform that action at this time.
0 commit comments