Wput错误大小失败

时间:2014-03-08 04:47:00

标签: file-upload upload

我正在尝试将文件上传到我的共享linux托管域,因为我是这个实用程序的新手,请帮我解决问题。详情如下

domain : mydomain.in
user : ftp_user
pwd : pwd
destination folder : /upload (Permission 777)
host os: windows 7 32 Bit
server : Linux shared hosting
Terminal : cmd with Admistrative Rights

wput bpp_config.ini --verbose -o log.txt ftp://ftp_user:pwd@mydomain.in/upload

输出log.txt

--10:04:02-- `bpp_config.ini'
    => ftp://ftp_user:xxxxx@xxx.xxx.xxx.xx:21/upload
Connecting to xxx.xxx.xx.xx:21... connected# --------- Welcome to Pure-FTPd [privsep]     [TLS] ----------
# You are user number 4 of 50 allowed.
# Local time is now 10:04. Server port: 21.
# IPv6 connections are also welcome on this server.
!
==> AUTH TLS ... done (communication is now encrypted!)
Logging in as xxx ... Logged in!
==> SIZE upload ... failed.
==> TYPE I ... done.
Setting data protection level to private ... done.
==> PASV ... done.
connection failed.
==> PORT ... failed.
Send Failed. Waiting 10 seconds... ==> SIZE upload ... failed.
Setting data protection level to private ... done.
==> PASV ... done.
connection failed.
==> PORT ... failed.
Send Failed. Waiting 10 seconds... 

1 个答案:

答案 0 :(得分:0)

您的情况中的错误并不是SIZE命令失败(如果文件尚不存在,那就没问题)。但是,wput无法与目标服务器建立单独的数据连接,您可以通过

查看
==> PASV ... done.
connection failed.
==> PORT ... failed.

当更详细地运行(-d)时,您将看到哪个IP wput正在尝试连接。防火墙很可能阻止了连接。尝试禁用它,它应该可以工作。