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

FIX: restore host keys after restart #266

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

Conversation

rbock44
Copy link

@rbock44 rbock44 commented Dec 31, 2018

Currently because of the livecd rootfs the host keys are lost. After a restart the host gets new keys. This causes problems with e.g. ssh which stores the public keys in known_hosts. Instead of messing around with ssh config it is easier to just restore the keys in case the machine was not newly created.

To keep this apart from user data I basically copied this to host-key handling.

@centos-ci
Copy link
Collaborator

Can one of the admins verify this patch?

@praveenkumar
Copy link
Collaborator

ok to test.

@rbock44
Copy link
Author

rbock44 commented Dec 31, 2018

I did not do the fix for redhat as I do not have a license but actually it would be just another copy past in the template

@gbraad
Copy link
Member

gbraad commented Dec 31, 2018 via email

@gbraad
Copy link
Member

gbraad commented Dec 31, 2018 via email

@rbock44
Copy link
Author

rbock44 commented Jan 1, 2019

OK. I added the changes also to the redhat template in a second commit. Thanks for the hint on the redhat developer license. Will follow up soon on this.

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.

4 participants