Thanks for tracking that down. This is intentionally different. Cloud-init is replacing the behavior of sshd-keygen, which created host keys with those permissions. See:
According to that 2nd issue, RHEL has an issue if those permissions aren't the same. But these permissions do not work with OpenEuler? I can circle back and see if RHEL still requires those permissions, but if so we may need to introduce different permissions based on distro.
Thanks for tracking that down. This is intentionally different. Cloud-init is replacing the behavior of sshd-keygen, which created host keys with those permissions. See:
https:/ /github. com/canonical/ cloud-init/ pull/1971# discussion_ r1084150227 /github. com/canonical/ cloud-init/ pull/1070
and
https:/
According to that 2nd issue, RHEL has an issue if those permissions aren't the same. But these permissions do not work with OpenEuler? I can circle back and see if RHEL still requires those permissions, but if so we may need to introduce different permissions based on distro.