ColdFusion 版本 9 安全 FTP - 无法连接

ColdFusion Version 9 Secure FTP - Unable to Connect

我希望将当前手动完成的工作自动化。正在使用 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.

换句话说,超时被有意关闭所取代。

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

您在 Filezilla 中创建 FTPS 连接,而 ColdFusion 9 本身不支持 FTPS,仅支持 SFTP。感谢abbottmw answer I was able to create an Explicit FTPS connection in the past. ColdFusion 9 ships with the Apache Commons library and you can create the connection on the java level with FTPSClient.