By default when joining a server to an ipa realm, the ssh public key gets uploaded, but since we are joining the realm before SSH has started and had a chance to create the host keys, running sshd-keygen before the ipa client installation puts keys into IPA and IPA can do the host key management.
Create SSH keys before joining IPA realm (#287)
By default when joining a server to an ipa realm, the ssh public key gets uploaded, but since we are joining the realm before SSH has started and had a chance to create the host keys, running sshd-keygen before the ipa client installation puts keys into IPA and IPA can do the host key management.