Solution Sheet

Version 2026 · EFTXpress · Posted 20 May 2026

H2H XML Format - SFTP Key Error: Invalid Private Key File

When using H2H XML format, the SFTP connection fails with "Invalid private key file". PuTTY-generated keys are not compatible with EFTXpress — keys must be generated using the command line provided by Peresoft.

When connecting via SFTP for H2H XML format, you may receive the error: "Invalid private key file". This is caused by using a PuTTY-generated key, which is not in the required format for EFTXpress.

Resolution:

  1. Generate a new RSA key using rsa-sha2-256 (recommended) or rsa-sha2-512 using the following command:
    ssh-keygen -p -m PEM -f ~/.ssh/id_rsa
  2. Submit the new public key to the bank for registration.
  3. Replace the old private key in the H2H/SFTP configuration in Setup EFTXpress Banks | SFTP Setup tab and retest.

Note: Do not use PuTTY to generate keys for EFTXpress. For version 2026, the Ed25519 key type is the industry standard.


Please sign in to use the Peresoft Support Assistant.