Repository navigation
docs(windows): add key-only SSH access to the Windows VM runbook #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,6 +13,7 @@ reach it through `gw01`. The OpenTofu root is `GilmanLab/fleet` | |
| | Access | Value | | ||
| | --- | --- | | ||
| | Remote Desktop | `10.10.50.30` | | ||
| | SSH (PowerShell, key-only) | `ssh -i ~/.ssh/win01 josh@10.10.50.30` | | ||
| | Administrator | `josh`, password in `GilmanLab/secrets` `services/windows/win01.sops.yaml` | | ||
|
|
||
| ## Preconditions | ||
|
|
@@ -81,6 +82,18 @@ just remove-install-media | |
| The media library is available read-only at `\\10.10.50.20\media` with the | ||
| `media` account from the media stack runbook. | ||
|
|
||
| For commands, SSH in with the operator key; the session is PowerShell: | ||
|
|
||
| ```bash | ||
| ssh -i ~/.ssh/win01 -o IdentitiesOnly=yes josh@10.10.50.30 | ||
| ``` | ||
|
|
||
| The server accepts only the key in the `incus/windows` `ssh_authorized_key` | ||
| variable; password and keyboard-interactive logins are disabled. To rotate | ||
| the key, write the new public key to | ||
| `C:\ProgramData\ssh\administrators_authorized_keys` and update the variable | ||
| so a rebuilt VM gets it. | ||
|
Comment on lines
+93
to
+95
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When the replacement key is mistyped or its matching private key is unavailable, overwriting the sole entry in AGENTS.md reference: AGENTS.md:L30-L34 Useful? React with 👍 / 👎. |
||
|
|
||
| ## Activate | ||
|
|
||
| **Settings → System → Activation → Change product key**, enter the purchased | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When an operator has several identities loaded in
ssh-agent, this command may offer unrelated keys and exhaust the server's authentication attempts even though~/.ssh/win01is correct. With OpenSSH 9.6,ssh -G -i <file>reportsidentitiesonly no; the full command at line 88 already avoids this failure, so add-o IdentitiesOnly=yesto the table command as well.AGENTS.md reference: AGENTS.md:L30-L34
Useful? React with 👍 / 👎.