提问人:djbetancourt 提问时间:10/31/2023 更新时间:10/31/2023 访问量:29
RCurl 无法连接到端口 21 FTP 超时
RCurl Failed to connect to port 21 FTP Timed out
问:
我在 R 中尝试从多个 FTP 服务器中提取 csv 数据。到目前为止,我的代码在其中两个服务器中运行良好,并且我能够收集我需要的数据,但是第三个服务器会抛出以下错误:
Error in function (type, msg, asError = TRUE) :
Failed to connect to ftp.ekeystone.com port 21 after 21191 ms: Timed out
这是我的代码:
# required packages
library(RCurl)
# credentials
url <- "ftp.ekeystone.com"
pwd <- "xxxxxxx:yyyyyyyy"
# recover raw files
rawFiles <- getURL(url = url, userpwd = pwd, ftp.use.epsv = FALSE)
它与 和 一起使用,但不能与 一起使用。ftp://154.49.142.233
ftp.motorstateftp.com
ftp.ekeystone.com
答:
0赞
Martin Prikryl
10/31/2023
#1
“需要基于 TLS 的隐式 FTP”是问题所在。我没有看到您的代码中启用了 TLS,只启用了隐式 TLS(使用端口 990)。
我不知道 RCurl。但我会从
url <- "ftps://ftp.ekeystone.com"
评论
url <- "ftps://ftp.ekeystone.com"
url <- "ftps://ftp.ekeystone.com"
Error in function (type, msg, asError = TRUE) : Access denied: 530