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

feat: Generate ssh host keys on first boot #140

Merged
merged 1 commit into from
Aug 10, 2024

Conversation

jpraczyk
Copy link
Contributor

@jpraczyk jpraczyk commented Aug 8, 2024

This change removes the keys generated by dpkg/debootstrap during configure phase and adds a systemd unit that runs dpkg-reconfigure openssh-server only if ssh host keys are not found. This ensures that every image burned to sd card gets it's own set of ssh host keys, improving the security posture.

Fixes #62

This change removes the keys generated by dpkg/debootstrap during configure phase
and adds a systemd unit that runs dpkg-reconfigure openssh-server
only if ssh host keys are not found. This ensures that every image
burned to sd card gets it's own set of ssh host keys, improving the
security posture.
@johang johang merged commit ec913e6 into johang:master Aug 10, 2024
3 of 5 checks passed
@johang
Copy link
Owner

johang commented Aug 10, 2024

Thanks!

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.

Images should not come with pre-generated SSH host keys
2 participants