今天给一个朋友改点东西,显示连接成功了,等待列表目录...过了一会儿却提示"错误:[数据]:连接超时","Cannot open data connection.","150 Opening ASCII mode data connection for /bin/ls.",郁闷死了,以为是leapftp的问题导致目录不能列表,但是我之前以及我现在ftp都没有问题啊,于是下载了flashfxp,cuteftp测试一样无法列表,上网查了一下,原来是因为路由的问题,解决方式有两种
1.不使用路由拨号,直接拨号 经测试,目录正常列表,而且显示目录也很快
2.如果你有权限管理FTP服务器 FTP时无法列出目录,可以这样设置 在出现150 Opening ASCII mode data connection for /bin/ls.不执行下一步。
正在连接到 220.231.20.236, 端口 21 (#1) 解析主机为:220.231.20.236 已连接。正在等待响应。 220 Serv-U FTP Server v6.1 for WinSock ready... USER jlfinery_com 331 User name okay, need password. PASS xxxxxx 230 User logged in, proceed. SYST 215 UNIX Type: L8 REST 100 350 Restarting at 100. Send STORE or RETRIEVE. REST 0 350 Restarting at 0. Send STORE or RETRIEVE. CWD /web/images 250 Directory changed to /web/images PWD 257 "/web/images" is current directory. TYPE A 200 Type set to A. PORT 192,168,1,12,7,105 200 PORT Command successful. LIST 150 Opening ASCII mode data connection for /bin/ls. 425 Cannot open data connection. PASV 227 Entering Passive Mode (220,231,20,236,31,98) 错误:[数据]:连接超时