Skip to content
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

Add GCEState.get_ssh_host_keys #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

roberth
Copy link
Contributor

@roberth roberth commented Nov 18, 2021

This will let NixOps provide the host keys directly to the ssh
client, regardless of whether they've been saved to user dotfiles.

It solves a problem where the host keys were not known on systems
that retrieve the state from a remote state provider.

See NixOS/nixops#1464

I haven't tested this yet. It can be tested by removing entries from ~/.ssh/known_hosts and then calling nixops ssh. It should still recognize the host key, as it is stored in the nixops state.

This will let NixOps provide the host keys directly to the ssh
client, regardless of whether they've been saved to user dotfiles.

It solves a problem where the host keys were not known on systems
that retrieve the state from a remote state provider.

See NixOS/nixops#1464
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