ColdFusion版本9安全FTP - 无法连接 [英] ColdFusion Version 9 Secure FTP - Unable to Connect
问题描述
我想自动化目前手动完成的操作。正在使用ftp客户端Filezilla执行手动过程。这些是指令:
在主机字段中,键入IP地址:xx.xxx.xxx.xxx。
在Port字段中,键入990.
在Servertype下拉列表中,更改它,以便它读取
FTP over SSL / TLS(隐式加密)。 (注意:在Mac OSX
版本,此选项将读取FTPS - FTP隐式TLS / SSL)。
在登录类型区域中,选择正常。
在用户名字段中,输入您的用户名。
在密码字段中,输入您的密码。
当我按照这些说明,我连接成功。这是我在ColdFusion中尝试的:
< cfftp action =open
connection =abc
secure = true
server =something valid
port =990
username =something valid
password =something valid>
这是错误消息:建立sFTP连接时出错。验证您的连接属性:用户名,密码,服务器,指纹,端口,密钥,连接,proxyServer和安全(如适用)。错误:Session.connect:java.net.SocketTimeoutException:读取超时。
当我删除端口属性时,结果不会改变。当我将用户名更改为无效的时,我得到一个略有不同的错误:建立sFTP连接时出错。验证您的连接属性:用户名,密码,服务器,指纹,端口,密钥,连接,proxyServer和安全(如适用)。错误:外部主机关闭连接。
换句话说,超时被替换为有意闭包。
$ b您创建一个FTPS连接,而ColdFusion 9没有FTPS的本地支持,只有SFTP。感谢 abbottmw回答我能够在过去创建一个显式FTPS连接。 ColdFusion 9附带了Apache Commons库,您可以在Java级别使用 FTPSClient 。
I am looking to automate something that is currently being done manually. The manual process is being performed using ftp client Filezilla. These are the instructions:
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.
When I follow those instructions, I connect successfully. This is what I tried in ColdFusion:
<cfftp action="open"
connection="abc"
secure = true
server="something valid"
port="990"
username="something valid"
password="something valid">
This is the error message: 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.
When I remove the port attibute, the result is unchanged. When I change the username to something not valid, I get a slightly different error: 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.
In other words, the timeout is replaced by an intentional closure.
What should I be looking at in order to sort this out?
Your creating a FTPS connection in Filezilla, and ColdFusion 9 doesn’t have native support for FTPS, only SFTP. Thanks to 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.
这篇关于ColdFusion版本9安全FTP - 无法连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!