• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

.PPK Files and Secure FTP Connections

Participant ,
Jun 01, 2009 Jun 01, 2009

Copy link to clipboard

Copied

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!

TOPICS
Advanced techniques

Views

1.4K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , Jun 01, 2009 Jun 01, 2009

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

Votes

Translate

Translate
Enthusiast ,
Jun 01, 2009 Jun 01, 2009

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation