On large scale deployments it was observed that in rare cases openssh-server-key-generator.service does not get started. The result is that the ssh host keys do not get generated and as a consequence ssh based login is not possible.
Root Cause
openssh-server-key-generator.service relies on the "first-boot" startup logic to get enabled. However, if the first boot fails in a very bad moment (before enabling the service) then the service does not get enabled on the second boot any more.
Solution
The service openssh-server-key-generator.service shall get enabled already during the image build.
Problem Description
On large scale deployments it was observed that in rare cases openssh-server-key-generator.service does not get started. The result is that the ssh host keys do not get generated and as a consequence ssh based login is not possible.
Root Cause
openssh-server-key-generator.service relies on the "first-boot" startup logic to get enabled. However, if the first boot fails in a very bad moment (before enabling the service) then the service does not get enabled on the second boot any more.
Solution
The service openssh-server-key-generator.service shall get enabled already during the image build.