gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 09:46:12 25 4
gpt4 key购买 nike

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

这是错误消息:建立 sFTP 连接时发生错误。验证您的连接属性:用户名、密码、服务器、指纹、端口、 key 、连接、代理服务器和安全(如果适用)。错误:Session.connect:java.net.SocketTimeoutException:读取超时。

当我删除端口属性时,结果没有改变。当我将用户名更改为无效的内容时,我会收到一个略有不同的错误:建立 sFTP 连接时发生错误。验证您的连接属性:用户名、密码、服务器、指纹、端口、 key 、连接、代理服务器和安全(如果适用)。错误:外部主机关闭了连接。

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

为了解决这个问题,我应该查看什么?

最佳答案

您在 Filezilla 中创建 FTPS 连接,而 ColdFusion 9 本身不支持 FTPS,仅支持 SFTP。感谢abbottmw answer我过去能够创建显式 FTPS 连接。 ColdFusion 9 附带 Apache Commons 库,您可以使用 FTPSClient 在 Java 级别创建连接.

关于ColdFusion 版本 9 安全 FTP - 无法连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34775022/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com