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: docs/vendor/testing-vm-create.md
+65-27Lines changed: 65 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,16 +4,14 @@ This topic describes how to use Replicated Compatibility Matrix to create and ma
4
4
5
5
## Set Up SSH Access
6
6
7
-
In order to access VMs that you create with Compatibility Matrix, you need to set up SSH access. You can do this using your personal GitHub accountor a GitHub service account used by your team.
7
+
To access VMs that you create with Compatibility Matrix, you need to set up SSH access. You can do this using your GitHub account, a personal public/private key, or a service account or bot with shared access.
8
8
9
-
For setting up SSH access to VMs that you create on your local machine, Replicated recommends that you use your personal GitHub account. For setting up SSH access for VMs created in CI/CD workflows used by your team, use a GitHub service account. For more information, see the sections below.
9
+
### Use Your GitHub Account
10
10
11
11
:::note
12
12
Your GitHub usernames and SSH keys are synced to a VM when it is first created. If you update your GitHub username or keys after creating a VM, you can manually sync by updating your [Account Settings](https://vendor.replicated.com/account-settings) in the Vendor Portal and clicking **Save**.
13
13
:::
14
14
15
-
### Use Your GitHub Account
16
-
17
15
To set up and verify SSH access for Compatibility Matrix VMs using your personal GitHub account:
18
16
19
17
1. Log in to your GitHub account and add an SSH key if you do not have one already. For information about how to generate and add a new SSH key, see [Generate a new SSH key](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#generati[…]w-ssh-key) and [Adding a new SSH key to your GitHub account](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account) in the GitHub documentation.
@@ -34,43 +32,83 @@ To set up and verify SSH access for Compatibility Matrix VMs using your personal
34
32
35
33
1. On the **Account Settings > Account Information** page, for **GitHub username**, add your GitHub username.
36
34
37
-
1. On the command line, authenticate with the Replicated CLI using your Vendor Portal account:
35
+
1. Verify that SSH access was set up successfully:
38
36
39
-
```bash
40
-
replicated login
41
-
```
42
-
:::note
43
-
To log out of an existing session, first run `replicated logout`.
44
-
:::
37
+
1. On the command line, authenticate with the Replicated CLI using your Vendor Portal account:
45
38
46
-
1. Run the following command to verify that your SSH setup is working:
39
+
```bash
40
+
replicated login
41
+
```
42
+
:::note
43
+
To log out of an existing session, first run `replicated logout`.
If successful, you will see a message similar to the following:
52
+
53
+
```
54
+
Hi <username>! You have successfully authenticated, use [VM_ID]@replicatedvm.com to access your VM.
55
+
```
56
+
57
+
:::note
58
+
If you see the prompt `Are you sure you want to continue connecting (yes/no/[fingerprint])?`, type `yes` and press Enter to continue. You might see this prompt if it is the first time you are authenticating with the public/private SSH key in your GitHub account.
59
+
:::
56
60
57
-
:::note
58
-
If you see the prompt `Are you sure you want to continue connecting (yes/no/[fingerprint])?`, type `yes` and press Enter to continue. You might see this prompt if it is the first time you are authenticating with the public/private SSH key in your GitHub account.
59
-
:::
61
+
### Use a Personal Public/Private Key
60
62
61
-
### Use a Service Account
63
+
To set up and verify SSH access for Compatibility Matrix VMs using a personal public/private key pair:
62
64
63
-
To automate the creation of VMs in your CI/CD workflows, you can use the flag `--ssh-public-key` to provide the SSH public key for a GitHub service account. For example:
65
+
1. If you do not already have a public and private key, generate a new public/private key pair.
66
+
67
+
1. Log in to the Vendor Portal and go to [**Compatibility Matrix Settings**](https://vendor.replicated.com/compatibility-matrix/settings).
68
+
69
+
1. On the **Compatibility Matrix Settings > SSH Public Keys** page, upload your public key.
70
+
71
+
1. Verify that SSH access was set up successfully:
72
+
73
+
1. On the command line, authenticate with the Replicated CLI using your Vendor Portal account:
74
+
75
+
```bash
76
+
replicated login
77
+
```
78
+
:::note
79
+
To log out of an existing session, first run `replicated logout`.
80
+
:::
81
+
82
+
1. Run the following command to verify that your SSH setup is working:
If successful, you will see a message similar to the following:
88
+
89
+
```
90
+
Hi <username>! You have successfully authenticated, use [VM_ID]@replicatedvm.com to access your VM.
91
+
```
92
+
93
+
:::note
94
+
If you see the prompt `Are you sure you want to continue connecting (yes/no/[fingerprint])?`, type `yes` and press Enter to continue. You might see this prompt if it is the first time you are authenticating with the public/private SSH key in your GitHub account.
95
+
:::
96
+
97
+
### Use a Service Account {#github-service-account}
98
+
99
+
If you are setting up SSH access for VMs created in CI/CD workflows used by your team, you can use the SSH key of a service account or bot with shared access.
100
+
101
+
To automate the creation of VMs in your CI/CD workflows, use the flag `--ssh-public-key` to provide the SSH public key. For example:
64
102
65
103
```bash
66
104
replicated vm create --distribution ubuntu --version 24.04 --ssh-public-key ~/.ssh/id_rsa.pub
0 commit comments