You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/virt-accessing-vmi-ssh.adoc
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,15 +6,15 @@
6
6
[id="virt-accessing-vmi-ssh_{context}"]
7
7
= Accessing a virtual machine via SSH by using virtctl
8
8
9
-
You can use the `virtctl ssh` command to forward SSH traffic to a virtual machine (VM) by using your local SSH client.
9
+
You can use the `virtctl ssh` command to forward SSH traffic to a virtual machine (VM) by using your local SSH client. If you have previously configured SSH key authentication with the VM, skip to step 2 of the procedure because step 1 is not required.
10
10
11
11
[NOTE]
12
12
====
13
13
Heavy SSH traffic on the control plane can slow down the API server. If you regularly need a large number of connections, use a dedicated Kubernetes `Service` object to access the virtual machine.
14
14
====
15
15
16
+
16
17
.Prerequisites
17
-
* You have access to an {product-title} cluster with `cluster-admin` permissions.
18
18
* You have installed the OpenShift CLI (`oc`).
19
19
* You have installed the `virtctl` client.
20
20
* The virtual machine you want to access is running.
@@ -23,22 +23,23 @@ Heavy SSH traffic on the control plane can slow down the API server. If you regu
23
23
24
24
.Procedure
25
25
26
-
. Use the `ssh-keygen` command to generate an SSH public key pair:
26
+
. Configure SSH key authentication:
27
+
.. Use the `ssh-keygen` command to generate an SSH public key pair:
27
28
+
28
29
[source,terminal]
29
30
----
30
31
$ ssh-keygen -f <key_file> <1>
31
32
----
32
33
<1> Specify the file in which to store the keys.
33
34
34
-
. Create an SSH authentication secret which contains the SSH public key to access the VM:
35
+
.. Create an SSH authentication secret which contains the SSH public key to access the VM:
0 commit comments