Repository navigation
Conversation
just install now shows the stock image's ed25519 host key fingerprint and requires it to match the one from the provider's console (or INSTALL_HOST_FINGERPRINT) before uploading anything. The key is pinned for detect-machine.sh and for nixos-anywhere: since nixos-anywhere passes StrictHostKeyChecking=no and OpenSSH uses the first value of an option, an ssh wrapper earlier in PATH puts the pinned options first. The kexec installer keeps the stock host keys, so the pin covers the whole install. Closes #12 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01G22o7QQ17GRtkCqpJNFr9B
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #12
Changes
just installscans the stock image's ed25519 host key, shows its fingerprint, and requires you to paste the matching fingerprint from the provider's web console before anything is uploaded.ssh-keygen -lf …after logging in there.INSTALL_HOST_FINGERPRINT=SHA256:…skips the prompt.trustskips verification explicitly, with a warning.detect-machine.sh, which no longer usesaccept-new;-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no, and OpenSSH uses the first value given for an option, so--ssh-optioncan't override it. Ansshwrapper placed first onPATHputs the pinned options in front. nixos-anywhere's Nix wrapper appends its own openssh last onPATH, so the wrapper is the one used.Testing
I ran a local
sshdand called the wrapper with nixos-anywhere's exact options appended:Host key verification failed.All 5 provider example systems build. nixfmt, shellcheck and tofu validate pass.
🤖 Generated with Claude Code
https://claude.ai/code/session_01G22o7QQ17GRtkCqpJNFr9B
Generated by Claude Code