【问题标题】:ColdFusion Version 9 Secure FTP - Unable to ConnectColdFusion 版本 9 安全 FTP - 无法连接
【发布时间】:2016-01-13 19:07:00
【问题描述】:

我希望将当前手动完成的事情自动化。正在使用 ftp 客户端 Filezilla 执行手动过程。这些是说明:

In the Host field, type in the IP address: xx.xxx.xxx.xxx.
In the Port field, type in 990.
In the Servertype dropdown list, change it so that it reads 
 FTP over SSL/TLS (implicit encryption). (NOTE: On the Mac OSX 
 version this option will read FTPS – FTP over implicit TLS/SSL).
In the Logontype area, select Normal.
In the Username field, enter your username.
In the Password field, enter your password.

当我按照这些说明进行操作时,我就成功连接了。这是我在 ColdFusion 中尝试过的:

<cfftp action="open"
connection="abc"
secure = true
server="something valid"
port="990"
username="something valid" 
password="something valid">

这是错误信息:An error occurred while establishing an sFTP connection. Verify your connection attributes: username, password, server, fingerprint, port, key, connection, proxyServer, and secure (as applicable). Error: Session.connect: java.net.SocketTimeoutException: Read timed out.

当我删除端口属性时,结果没有改变。当我将用户名更改为无效的内容时,我得到一个稍微不同的错误:An error occurred while establishing an sFTP connection. Verify your connection attributes: username, password, server, fingerprint, port, key, connection, proxyServer, and secure (as applicable). Error: connection is closed by foreign host.

换句话说,超时被故意关闭。

我应该看什么才能解决这个问题?

【问题讨论】:

    标签: coldfusion ftp sftp coldfusion-9 ftps


    【解决方案1】:

    您在 Filezilla 中创建 FTPS 连接,而 ColdFusion 9 没有对 FTPS 的原生支持,只有 SFTP。感谢abbottmw answer,我过去能够创建显式 FTPS 连接。 ColdFusion 9 附带 Apache Commons 库,您可以使用 FTPSClient 在 Java 级别创建连接。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-01-11
      • 2019-06-06
      • 2019-07-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-06-06
      • 2019-11-25
      相关资源
      最近更新 更多