dos下登录fedora下的vsftp失败
来源:互联网 发布:南师大艺考成绩算法 编辑:程序博客网 时间:2024/05/01 09:58
我有两个FTP站点:A - windows xp下的IIS, B - 虚拟机fedora12下的vsftp,都是正常运行的,同时这两个站点都允许匿名访问。
在dos下访问A,或在fedora12终端下登录B,都是成功的。但是在dos下访问B,或在fedora12终端下访问A都是失败的。为什么呢?
想来想去不明白,因为我的windows xp已经关闭了防火墙,而且fedora也已经关闭了selinux。搞到最后原来是fedora12下的防火墙的缘故。
最后,把fedora下的防火墙也关了,命令如下:
[root@vsftpd #70]#service iptables stop
iptables:清除防火墙规则: [确定]
iptables:将链设置为政策 ACCEPT:filter [确定]
iptables:正在卸载模块: [确定]
这样之后,就可以成功地登录windows下的ftp-A了,同时,dos也可以成功地登录fedora12下的B了。看看结果吧:
dos登录A:
C:\Documents and Settings\zhouciming>ftp 192.168.1.102
Connected to 192.168.1.102.
220 (vsFTPd 2.2.2)
User (192.168.1.102:(none)): ftp
331 Please specify the password.
Password:
230 Login successful.
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
pub
226 Directory send OK.
ftp: 收到 5 字节,用时 0.00Seconds 5000.00Kbytes/sec.
ftp> dir
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
drwxr-xr-x 2 0 0 4096 May 17 2010 pub
226 Directory send OK.
ftp: 收到 61 字节,用时 0.00Seconds 61000.00Kbytes/sec.
ftp> close
221 Goodbye.
ftp> disconnect
Not connected.
ftp> bye
fedora12终端下登录ftp-A:
[root@vsftpd #71]#ftp 192.168.1.100
Connected to 192.168.1.100 (192.168.1.100).
220 Microsoft FTP Service
Name (192.168.1.100:root): ftp
331 Anonymous access allowed, send identity (e-mail name) as password.
Password:
230 Anonymous user logged in.
Remote system type is Windows_NT.
ftp> ls
227 Entering Passive Mode (192,168,1,100,80,179).
125 Data connection already open; Transfer starting.
06-15-11 10:17PM 280 a.txt
226 Transfer complete.
ftp> dir
227 Entering Passive Mode (192,168,1,100,80,180).
125 Data connection already open; Transfer starting.
06-15-11 10:17PM 280 a.txt
226 Transfer complete.
ftp> bye
221
[root@vsftpd #72]#
原来linux下的防火墙的服务名是:iptables,现在才知道,慢慢积累吧!
- dos下登录fedora下的vsftp失败
- fedora 下的dos模拟器
- 【linux服务器】VM中fedora的VSFTP,主机win远程登录失败应对方法
- 使vsftp下root登录
- Fedora下搭建FTP服务器-VSFTP
- Fedora下搭建FTP服务器-VSFTP
- Fedora下搭建FTP服务器-VSFTP
- linux 下的vsftp
- 解决Fedora Core 4下vsftp无法正常上传的问题
- linux下 配置VSFTP 实现 Fedora与windows互访
- Fedora的GUI下使用root用户登录的问题
- linux下的vsftp服务
- Linux下的vsftp服务
- Ubuntu下vsftp的配置
- Linux 下vsftp的搭建
- centos 下 vsftp的 配置
- linux下vsftp的搭建
- Linux下vsftp 的配置
- 我的游戏之路(4)
- SHGetSpecialFolderPath 获取系统预设的目录
- python 图片搜索
- 欢迎关注OSXToy
- java 读取文件指定行的内容
- dos下登录fedora下的vsftp失败
- 欢迎关注OSXToy
- perl替换脚本
- DRAM, SRAM, SDRAM的关系与区别
- poj1265
- 实现线程范围的共享变量
- HDOJ 1829 A Bug's Life
- 先理清逻辑问题,再解决语法问题
- 我的游戏之路(5)