An invalid privatekey" error is generated when using SFTP

Document ID : KB000088650
Last Modified Date : 14/04/2018
Show Technical Document Details


A error message, similar to the following, is generated when attempting to use a job that uses sftp.

ErrorMsg: Internal error  (3/2/15 4:18 PM)
Details: Error,  unable to connect to remote host
com.jcraft.jsch.JSchException: invalid privatekey: c:\path\to\file.ppk



A number of issue can cause that error to occur.  One of the most common reasons is because the public key was created with the ppk format, but the private key was generated in the .pm format.



Generating and using a .ppk private key instead of a .pem formatted key should resolve the issue.  Please contact Automic support if the issue continues.