Skip to content

docs: dracut-crypt-ssh keys name and format fix #743

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JkktBkkt
Copy link

As discussed on IRC, fixes the instructions for key creation for dracut-crypt-ssh module, preserving the instructions for mkinitcpio

@JkktBkkt JkktBkkt force-pushed the doc-pictures-on-my-mind branch from 6b24aab to e7d0de6 Compare April 30, 2025 02:03

mkdir -p /etc/dropbear
for keytype in rsa ecdsa ed25519; do
ssh-keygen -g -N "" -m PEM -t "${keytype}" -f "/etc/dropbear/ssh_dracut_host_${keytype}_key"
Copy link
Member

Choose a reason for hiding this comment

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

Leave the output files named as the later directions require, rather than changing those as well.

Suggested change
ssh-keygen -g -N "" -m PEM -t "${keytype}" -f "/etc/dropbear/ssh_dracut_host_${keytype}_key"
ssh-keygen -g -N "" -m PEM -t "${keytype}" -f "/etc/dropbear/ssh_host_${keytype}_key"

Comment on lines -211 to +223
# Copy system keys for consistent access
dropbear_rsa_key=/etc/dropbear/ssh_host_rsa_key
dropbear_ecdsa_key=/etc/dropbear/ssh_host_ecdsa_key
# Point to host keys made earlier
dropbear_rsa_key=/etc/dropbear/ssh_dracut_host_rsa_key
dropbear_ecdsa_key=/etc/dropbear/ssh_dracut_host_ecdsa_key
Copy link
Member

Choose a reason for hiding this comment

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

Drop changes in light of edits above.

Copy link
Author

Choose a reason for hiding this comment

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

Paraphrasing from irc for transparency:
Am unsure whether Copy system keys... line makes sense since we're not using our system keys in that case. This rename is the same reason I've changed the name above as, following the guide, the user makes separate keys just for dracut-included dropbear.

I'll add these in if you/team insist on this phrasing

Co-authored-by: Andrew J. Hesford <ajh@sideband.org>
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.

2 participants