In the haste of copy-paste you forgot to change the type of generated key. Instead of Ed25519, an ECDSA key (nistp256) is written to /etc/ssh/ssh_host_ed25519_key.
In the haste of copy-paste you forgot to change the type of generated key. ssh_host_ ed25519_ key.
Instead of Ed25519, an ECDSA key (nistp256) is written to /etc/ssh/