我正在寻找自动化的事情,目前正在手动进行。正在使用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.
换句话说,超时被有意关闭所取代。
为了解决这个问题,我应该看什么?
发布于 2016-01-13 20:19:23
在Filezilla中创建FTPS连接,ColdFusion 9不支持FTPS,只有SFTP。多亏了answer回答,我在过去能够创建一个显式的FTPS连接。ColdFusion 9附带Apache,您可以使用FTPSClient在java级别创建连接。
https://stackoverflow.com/questions/34775022
复制相似问题