从一个错误再谈FTP模式 推荐
2008-07-30 16:31
225 查看
从一个错误再谈FTP[/b]模式[/b]
情况概述:
Linux上建好了ftp服务器
客户端为linux时没问题
客户端为windows XP
SP2,用软件的ftp客户端(IE,CuteFTP)都可以正常访问,但是在cmd命令行下出错
C:\Documents and Settings\Administrator>ftp
www.abc.com.cn[/b]
Connected to www.abc.com.cn.
220 ProFTPD 1.3.0rc2
Server (ProFTPD Default Installation)
User (www.abc.com.cn:(none)): yahoon
331 Password required for yahoon.
Password:
230 User yahoon logged in. //登陆成功
ftp> dir
//执行dir命令
500 Illegal
PORT command[/b]
425 Unable to build data connection: Connection refused[/b]
ftp>
经查这是由于
Windows系统下的FTP命令行模式不支持“被动访问模式(PASV)”. 虽然你可以使用QUOTE
PASV这个命令强制使用PASV模式,但是当你用dir命令列出服务器目录列表,你会发现它还是使用PORT方式来连接服务器的。
关于FTP的两种访问方式
主动方式 PORT
客户端连到服务器的21发控制指令.服务器的20连到客户端传数据
被动方式 PASV
客户端连到服务器的21发控制指令.服务器提供一个端口(>1024),让客户端连上来.
附:
IE是默认采用的PASV方式连接服务器,具体设置和查看方法如下
Internet Explorer: To make this change in Internet Explorer go to the
"Tools" menu and click . "Internet Options". In the
"Internet Options" window, click . the "Advanced" tab.
Scroll down to find an option labeled "Use Passive FTP", and check or
uncheck the box.
情况概述:
Linux上建好了ftp服务器
客户端为linux时没问题
客户端为windows XP
SP2,用软件的ftp客户端(IE,CuteFTP)都可以正常访问,但是在cmd命令行下出错
C:\Documents and Settings\Administrator>ftp
www.abc.com.cn[/b]
Connected to www.abc.com.cn.
220 ProFTPD 1.3.0rc2
Server (ProFTPD Default Installation)
User (www.abc.com.cn:(none)): yahoon
331 Password required for yahoon.
Password:
230 User yahoon logged in. //登陆成功
ftp> dir
//执行dir命令
500 Illegal
PORT command[/b]
425 Unable to build data connection: Connection refused[/b]
ftp>
经查这是由于
Windows系统下的FTP命令行模式不支持“被动访问模式(PASV)”. 虽然你可以使用QUOTE
PASV这个命令强制使用PASV模式,但是当你用dir命令列出服务器目录列表,你会发现它还是使用PORT方式来连接服务器的。
关于FTP的两种访问方式
主动方式 PORT
客户端连到服务器的21发控制指令.服务器的20连到客户端传数据
被动方式 PASV
客户端连到服务器的21发控制指令.服务器提供一个端口(>1024),让客户端连上来.
附:
IE是默认采用的PASV方式连接服务器,具体设置和查看方法如下
Internet Explorer: To make this change in Internet Explorer go to the
"Tools" menu and click . "Internet Options". In the
"Internet Options" window, click . the "Advanced" tab.
Scroll down to find an option labeled "Use Passive FTP", and check or
uncheck the box.
相关文章推荐
- 设置Serv-U FTP 支持被动模式连接 ,530错误等解决办法
- ftp 主动模式与被动模式:错误异常Host attempting data connection 192.168.90.151 is not same as server 192.168.90.24
- 设置Serv-U FTP 支持被动模式连接 ,530错误等解决办法集锦
- FTP常见错误及主动与被动模式问题
- ftp传二进制文件时一定要用二进制模式,否则内容会有变化,造成后处理莫名其妙的错误,还以为传输前后内容一致,其实已变化。
- 设置Serv-U FTP 支持被动模式连接 ,530错误等解决办法集锦
- 主动模式下FTP的详细工作过程 推荐
- 在windows server 2003上实验ftp的AD用户隔离模式 推荐
- 一些常见的FTP错误总汇
- ftp的主动模式(port)与被动模式(PASV)
- RHEL 5服务篇—部署FTP文件传输服务(二)部署基于虚拟用户的FTP服务 推荐
- Windows Update无法更新,错误代码为0x8024001D 推荐
- ftp工作原理之被动模式
- 《商业模式全史》:美国、日本、中国曾经出现过的商业模式的概括,四星推荐。
- FTP主动模式和被动模式的区别
- 从一个 JSON.parse 错误深入研究 JavaScript 的转义字符
- ORA-00265:修改oracle归档模式错误分析
- 在实践中深入理解VMware虚拟机的上网模式:NAT模式 推荐
- FTP 模式
- ftp传输模式