Skip to content

Commit 12c2d15

Browse files
author
Michael Burke
committed
OCPBUGS55735: OpenSSH key Setup
1 parent 427eca1 commit 12c2d15

File tree

3 files changed

+30
-2
lines changed

3 files changed

+30
-2
lines changed

modules/configuring-secret-for-wmco.adoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ To run the Windows Machine Config Operator (WMCO), you must create a secret in t
1111
.Prerequisites
1212

1313
* You installed the Windows Machine Config Operator (WMCO) using Operator Lifecycle Manager (OLM).
14-
* You created a PEM-encoded file containing an RSA key.
14+
* You created a PEM-encoded file containing a private key by using a strong algorithm, such as ECDSA.
15+
+
16+
--
17+
include::snippets/wmco-key-ascii-encoding.adoc[]
18+
--
1519
1620
.Procedure
1721

modules/creating-the-vsphere-windows-vm-golden-image.adoc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ Create a vSphere Windows virtual machine (VM) golden image.
1010

1111
.Prerequisites
1212

13-
* You have created a private/public key pair, which is used to configure key-based authentication in the OpenSSH server. The private key must also be configured in the Windows Machine Config Operator (WMCO) namespace. This is required to allow the WMCO to communicate with the Windows VM. See the "Configuring a secret for the Windows Machine Config Operator" section for more details.
13+
* You have created a private/public key pair, which is used to configure key-based authentication in the OpenSSH server. The private key must be configured in the Windows Machine Config Operator (WMCO) namespace so that the WMCO can communicate with the Windows VM.
14+
+
15+
--
16+
include::snippets/wmco-key-ascii-encoding.adoc[]
17+
--
18+
+
19+
See the "Configuring a secret for the Windows Machine Config Operator" section for more details.
1420
1521
[NOTE]
1622
====

snippets/wmco-key-ascii-encoding.adoc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Text snippet included in the following modules:
2+
//
3+
// * modules/configuring-secret-for-wmco.adoc
4+
// * modules/creating-the-vsphere-windows-vm-golden-image.adoc
5+
6+
:_mod-docs-content-type: SNIPPET
7+
8+
If you created the key pair on a {op-system-base-full} system, before you can use the public key on a Windows system, make sure the public key is saved using ASCII encoding. For example, the following PowerShell command copies a public key, encoding it for the ASCII character set:
9+
10+
[source,terminal]
11+
----
12+
C:\> echo "ssh-rsa <ssh_pub_key>" | Out-File <ssh_key_path> -Encoding ascii
13+
----
14+
15+
where:
16+
17+
`<ssh_pub_key>`:: Specifies the SSH public key used to access the cluster.
18+
`<ssh_key_path>`:: Specifies the path to the SSH public key.

0 commit comments

Comments
 (0)