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
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -144,9 +144,10 @@ To connect to a VM using direct SSH:
144
144
145
145
Where:
146
146
* `VMID_OR_VMNAME` is the ID or name of the VM. Run `replicated vm ls`.
147
-
* (Optional) `GITHUB_USERNAME` is a GitHub username used to connect to the SSH endpoint. This is an optional flag that overrides the GitHub username listed in your Vendor Portal account. The `--username` flag is required if you want to:
148
-
* Use a different GitHub username than what is in Vendor Portal (or if there is no username set in the Vendor Portal)
149
-
* When creating a VM, you used the `--ssh-public-key` flag to associate the VM with a GitHub service account, and this doesn't match the GitHub username setin Vendor Portal
147
+
* `GITHUB_USERNAME` is the GitHub username used to connect to the SSH endpoint. If `--username` is unset, this command uses the GitHub username listed in your Vendor Portal account by default. The `--username` flag is required if the username associated with the VM differs from your GitHub username in the Vendor Portal. For example, you must set `--username` if:
148
+
* There is no username set in the Vendor Portal
149
+
* You want to use a different GitHub username than what is in Vendor Portal
150
+
* You used the `--ssh-public-key` flag to create this VM, and the username from the SSH public key's comment differs from GitHub username in the Vendor Portal. The username is the portion in the SSH key's comment before the first `@`. For example, a key with the comment `ci@host` creates a Linux user named `ci`. In this case, if the GitHub username in the Vendor Portal in not `ci`, then you would pass `--username ci`. For more information about the `--ssh-public-key` flag, see [Use a service account](#github-service-account) on this page.
150
151
151
152
**Example:**
152
153
@@ -210,9 +211,10 @@ To copy files to a VM using the scp endpoint:
210
211
211
212
Where
212
213
* `VMID_OR_VMNAME` is the ID or name of the VM.
213
-
* (Optional) `GITHUB_USERNAME` is a GitHub username used to connect to the SCP endpoint. This is an optional flag that overrides the GitHub username listed in your Vendor Portal account. The `--username` flag is required if you want to:
214
-
* Use a different GitHub username than what is in Vendor Portal (or if there is no username set in the Vendor Portal)
215
-
* When creating a VM, you used the `--ssh-public-key` flag to associate the VM with a GitHub service account, and this doesn't match the GitHub username set in Vendor Portal
214
+
* `GITHUB_USERNAME` is the GitHub username used to connect to the SSH endpoint. If `--username` is unset, this command uses the GitHub username listed in your Vendor Portal account by default. The `--username` flag is required if the username associated with the VM differs from your GitHub username in the Vendor Portal. For example, you must set `--username` if:
215
+
* There is no username set in the Vendor Portal
216
+
* You want to use a different GitHub username than what is in Vendor Portal
217
+
* You used the `--ssh-public-key` flag to create this VM, and the username from the SSH public key's comment differs from GitHub username in the Vendor Portal. The username is the portion in the SSH key's comment before the first `@`. For example, a key with the comment `ci@host` creates a Linux user named `ci`. In this case, if the GitHub username in the Vendor Portal in not `ci`, then you would pass `--username ci`. For more information about the `--ssh-public-key` flag, see [Use a service account](#github-service-account) on this page.
0 commit comments