FileZilla 425 Can't open data connection. 的错误解决

 

 

我的应用背景:使用FTP实现文件共享和传输。

条件如下:

1. 主机是Windows Vista(安装FileZilla Server,Windows成为FTP服务器)

2. 虚拟机Ubuntu Server 9.10(由Virtual Box创建,并能和主机ping通)

 

 

在Ubuntu下:

# ftp *.158.*.133

输入用户名和密码后,登入成功:

ftp> ls

200 Port command successful

150 Opening data channel for directory list.

......

之后就没有输出了,按下Ctrl+C

......

425 Can't open data connection.

226 ABOR command successful

ftp>

 

 

原因分析及解决过程:

1. Windows下,用命令行登入ftp正常,说明ftp服务器没有问题。。。

2. 在网上搜索了一下,有说是防火墙的原因或是Passive Mode的问题

3. 用man ftp查看帮助:

 

 

-p    Use passive mode for data transfers. Allows use of ftp in environments

       where a firewall prevents connections from the outside world

       back to the client machine. Requires that the ftp server support

       the PASV command. This is the default if invoked as pftp.

 

 

我的解决方法(连接是多使用一个参数):

 

#ftp -p *.158.*.133

就可以成功了

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值