openssh: Validate keys and regenerate if needed.
authorMarkus Gothe <markus.gothe@genexis.eu>
Wed, 15 Jan 2025 17:54:29 +0000 (18:54 +0100)
committerMichael Heimpold <mhei@heimpold.de>
Sat, 25 Jan 2025 10:09:48 +0000 (11:09 +0100)
commit69c29a5b26505ca5ee3633b0b6a5463411f2a6d8
tree85b5fbf7583ff5eec0d45f50afbbec1068b271ae
parent3ac8092a39360a430a41fb7cc7569e02c769fdfc
openssh: Validate keys and regenerate if needed.

Imitate dropbear init.d-script and make sure we
don't end up with corrupt keys.

This can happen if we use a caching filesystem,
like 'ubifs', and the DUT is powered off during
boot-up.

Signed-off-by: Markus Gothe <markus.gothe@genexis.eu>
net/openssh/files/sshd.init