Skip to content

docs(windows): add key-only SSH access to the Windows VM runbook - #47

Merged
jmgilman merged 1 commit into
masterfrom
docs/win01-ssh
Oct 17, 2026
Merged

jmgilman merged 1 commit into
masterfrom
docs/win01-ssh

Conversation

@jmgilman

Copy link
Copy Markdown
Contributor

Companion to GilmanLab/fleet#33.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-17T02:25:56.512746Z 4ead5a3 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4ead5a3d17

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

| Access | Value |
| --- | --- |
| Remote Desktop | `10.10.50.30` |
| SSH (PowerShell, key-only) | `ssh -i ~/.ssh/win01 josh@10.10.50.30` |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Add IdentitiesOnly to the quick SSH command

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/win01 is correct. With OpenSSH 9.6, ssh -G -i <file> reports identitiesonly no; the full command at line 88 already avoids this failure, so add -o IdentitiesOnly=yes to the table command as well.

AGENTS.md reference: AGENTS.md:L30-L34

Useful? React with 👍 / 👎.

Comment on lines +93 to +95
the key, write the new public key to
`C:\ProgramData\ssh\administrators_authorized_keys` and update the variable
so a rebuilt VM gets it.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Verify the replacement key before removing the old one

When the replacement key is mistyped or its matching private key is unavailable, overwriting the sole entry in administrators_authorized_keys makes every new SSH session fail after the current session closes, while password and keyboard-interactive recovery are explicitly disabled. Keep the old key while adding the replacement, verify a second connection using the new key, and only then remove the old key and update the variable; the runbook should include the concrete commands and expected observation.

AGENTS.md reference: AGENTS.md:L30-L34

Useful? React with 👍 / 👎.

@jmgilman
jmgilman merged commit e8d79fa into master Oct 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant