Invalid privatekey error when publishing via SFTP

When using SSH Key authentication for SFTP Transports, you may see the following errors when testing the Transport or when publishing to a Destination using the Transport:

SFTP error occurred during SFTP Shuttle initialization: invalid privatekey: [x@xxxxxxx

To resolve the issue, upload your SSH key in PEM format. For example, a command like the following should produce a valid key pair in this format:

ssh-keygen -t rsa -m PEM

 For more information on the ssh-keygen command, see this page.