I used puttygen a long time ago with these directions and it worked. I think now the integration must be configured via the UI. The default is RSA with 2048 bits, try that first…
How I got Asuswrt device tracker working with SSH key files - Configuration - Home Assistant Community (home-assistant.io)