Skip to content

Commit b768e17

Browse files
authored
Merge pull request #56455 from gtrivedi88/RHDEVDOCS-4989
RHDEVDOCS-4989 | Corrected the description for the ssh-privatekey and known_hosts in the secret definition
2 parents 7704459 + 1c045fe commit b768e17

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

modules/op-configuring-ssh-authentication-for-git.adoc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ Consider using SSH-based authentication rather than basic authentication.
1919
.Procedure
2020

2121
. Generate an link:https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent[SSH private key], or copy an existing private key, which is usually available in the `~/.ssh/id_rsa` file.
22-
. In the `secret.yaml` file, set the value of `ssh-privatekey` to the name of the SSH private key file, and set the value of `known_hosts` to the name of the known hosts file.
22+
. In the `secret.yaml` file, set the value of `ssh-privatekey` to the content of the SSH private key file, and set the value of `known_hosts` to the content of the known hosts file.
23+
2324
+
2425
[source,yaml,subs="attributes+"]
2526
----
@@ -35,8 +36,8 @@ stringData:
3536
known_hosts: <3>
3637
----
3738
<1> Name of the secret containing the SSH private key. In this example, `ssh-key`.
38-
<2> Name of the file containing the SSH private key string.
39-
<3> Name of the file containing a list of known hosts.
39+
<2> The content of the SSH private key file.
40+
<3> The content of the known hosts file.
4041
+
4142
[CAUTION]
4243
====

modules/op-understanding-credential-selection.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ type: kubernetes.io/ssh-auth
4242
stringData:
4343
ssh-privatekey: <1>
4444
----
45-
<1> Name of the file containing the SSH private key string.
45+
<1> The content of the SSH private key file.

0 commit comments

Comments
 (0)