【发布时间】: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