Dan*_*nia 5 sftp curl r fips rcurl
我正在尝试连接到 SFTP 服务器。它是使用FIPS模式的加密服务器。我能够通过 WinSCP、FileZilla 和 bash sftp 命令连接并执行文件传输,没有任何问题。
但是,我无法使用RCurl(R 版本=3.3.2,RCurl 版本=1.95-4.10,Windows 10)从 R 访问相同的 SFTP 。这是我的代码的样子以及正在生成的错误消息:
RCurl::ftpUpload(what="path/to/my/local/file.ext",
to = "sftp://my.eftp.server:portNumber/path/to/my/file.ext",
userpwd = "user:password",
.opts=curlOptions(verbose=TRUE))
Run Code Online (Sandbox Code Playgroud)
错误信息是:
* Trying ###.###.###.##...
* Connected to my.eftp.server (###.###.###.##) port ## (#0)
* Failure establishing ssh session
* Closing connection 0
Error in function (type, msg, asError = TRUE) :
Failure establishing ssh session
Run Code Online (Sandbox Code Playgroud)
任何帮助都会很棒。我参考了以下内容,但没有成功: sftp with R - sftp not a protocol with RCurl、 Using RCurl with SFTP 和 RCurl 文档(和其他链接)。
我也尝试过:
RCurl::ftpUpload(what="path/to/my/local/file.ext",
to = "sftp://user:password@my.eftp.server:portNumber/path/to/my/file.ext",
.opts=curlOptions(verbose=TRUE))
Run Code Online (Sandbox Code Playgroud)
另外,我还检查了我的curlVersion()$protocolsscp 和 sftp 协议是否已列出(以及其他协议)。
| 归档时间: |
|
| 查看次数: |
2398 次 |
| 最近记录: |