dos下登录fedora下的vsftp失败
我有兩個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失败的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: java核心技术卷2 第9版 pdf,J
- 下一篇: 挑选合适自己的一门编程语言