Skip to main content
Inspiring
June 1, 2009
Answered

.PPK Files and Secure FTP Connections

  • June 1, 2009
  • 1 reply
  • 1463 views

Hi Community!

I am having some issues establishing a secure FTP connection in ColdFusion. The error message that I get is "Invaid Private Key" and refuses the connection. Yes, "Invaid" there is a mispelling there 🙂

This is the code I am using:

<cftry>
<cfftp action="open" connection="myconnection" key="\\server\web\retail\dir\privateKey.ppk" passphrase="pass" secure="yes" server="sftp.server.com" port="22" stoponerror="yes" username="theUsername">
<cfcatch type="any">
  <cfoutput>
  <cfdump var="#cfcatch#">
  </cfoutput>
</cfcatch>
</cftry>

I wonder what the problem is here! I'd REALLY appreciate any thougts!

This topic has been closed for replies.
Correct answer mack_

My guess is that SFTP wants the key to be in SSH format, something like this:

1 reply

mack_Correct answer
Participating Frequently
June 1, 2009

My guess is that SFTP wants the key to be in SSH format, something like this: