无法将文件上传到远程ftps服务器

时间:2017-05-05 13:19:03

标签: ssl curl ftp

我有一个场景需要将文件上传到远程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

0 个答案:

没有答案