【发布时间】:2017-05-06 22:28:40
【问题描述】:
我有一个场景,我需要将文件上传到远程 FTP 服务器。我尝试上传此文件的机器位于 AWS-VPC 内部和 SOCKS 服务器后面,现在我正在使用以下命令来这样做
curl --connect-timeout 90 -T nishant.txt ftps://ftp.box.com/RANDOM_FOLDER/nishants.txt --user "username:password" -x socks://internal-proxy-elb-7288384.eu-central-1.elb.amazonaws.com:1080 -v
现在当我运行它时,它建立了连接并将文件也发送到远程 FTP 服务器,但上传到远程服务器的文件是 空。
我通过运行上述文件收到的错误是:
> STOR nishants.txt
< 150 File status okay; about to open data connection.
* Doing the SSL/TLS handshake on the data stream
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* SSL re-using session ID
* SSLv3, TLS handshake, Client hello (1):
} [data not shown]
* SSLv3, TLS alert, Client hello (1):
{ [data not shown]
* Unknown SSL protocol error in connection to ftp.box.com:990
0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0
* Closing connection 0
* SSLv3, TLS alert, Client hello (1):
} [data not shown]
curl: (35) Unknown SSL protocol error in connection to ftp.box.com:990
我正在运行以下 curl 版本:
curl 7.35.0 (x86_64-pc-linux-gnu) libcurl/7.35.0 OpenSSL/1.0.1f zlib/1.2.8 libidn/1.28 librtmp/2.3
OpenSSL 版本:
OpenSSL 1.0.1f 6 Jan 2014
【问题讨论】: