You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.
Each host should have its own set of SSH keys. As of now, the SSH keys are generated during the install of the package openssh-server. That means the keys end up in the image.
For a clean solution, we should probably remove the pregenerated keys during build of the rootfs. Additionally, we have to make sure the keys are regenerated on first boot.
The text was updated successfully, but these errors were encountered:
There is no need to do the key regeneration on a per-device basis. And the aim should be to do as much as possible inside the (device-independent) rootfs, right? So I think we need to add a first-time boot service here which runs the dpkg-reconfigure openssh-server, as opposed to duplicating this effort in every device-specific builder script (see hypriot/image-builder-rpi#9).
We also need to figure out a clean way to run a one-time service on bootup. I am not very comfortable with the fact that the root partition (at least in the C1 image) is resized on every boot. The easiest way would probably be to just append an entry to an env file after the first run. That would be checked before running the service another time.
Each host should have its own set of SSH keys. As of now, the SSH keys are generated during the install of the package
openssh-server
. That means the keys end up in the image.For a clean solution, we should probably remove the pregenerated keys during build of the rootfs. Additionally, we have to make sure the keys are regenerated on first boot.
The text was updated successfully, but these errors were encountered: