On Tue, Oct 27, 2009 at 3:29 PM, Ian Skinner <[email protected]> wrote:
>
> Can ColdFusion communicate with a SFTP server with it's <cfftp...> tag?
Yes as of CF8, just add secure="true" when you open the connection.
Here's a simple example:
<cfftp action="open" server="#server#" connection="ftpSession"
username="#user#" password="#pass#" secure="true">
<cfif cfftp.succeeded>
<cfftp action="listdir" connection="ftpSession" directory="/"
name="list">
<cfdump var="#list#">
<cfelse>
Error:
<cfdump var="#cfftp#">
</cfif>
Though you might want to consider using the key attribute instead of
username and password, see
http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_f_18.html#3972324
--
Pete Freitag
http://foundeo.com/ - ColdFusion Consulting & Products
http://petefreitag.com/ - My Blog
http://hackmycf.com - Is your ColdFusion Server Secure?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327784
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4