SSH Keys: Invalid private key file or format
250
Created On 11/10/26 11:03 AM - Last Modified 11/10/26 15:50 PM
Symptom
When attempting to manage or use a SSH Key that was onboarded using a PPK file, you may receive one of the following errors depending on the platforms executable file:
TPC Error:
Execution error. EXT01::Invalid private key file. Error code:-1
PMTerminal Error:
First login - Server refused our key. Validate that the private SSH key is valid. code: 8034
Environment
10.10;11.5;11.7;12.0;12.2;12.6;13.2;14.0;14.6 Privileged Access Manager (PAM, self-hosted) Central Policy Manager (CPM)
- Unix Via SSH Keys
- TPC or PMTerminal
- PuTTY v0.75+
Cause
Newer versions of PuTTY (v0.75+) use a new format for their PPK files, so when you convert the private key into a PPK file and upload it to the Vault then it is set for PPK3. This will cause PMTerminal and TPC to use an invalid formatted key to connect to the target server. Resulting in one of the two errors above, while you can connect normally over PuTTY.
Resolution
To fix this issue you will be able to do the following within PuTTYGen:
- Open PuTTYGen and import the private key
- In the toolbar select "Key" and "Parameters for saving key files..."
- Set "PPK File version" to 2 instead of 3
- Save the changes
- Select "Save Private Key" and save the file with a .PPK extension
- On the PVWA select the SSH Key account
- Select "Change" and "Change only in the Vault". Then upload the new key and press ok.