日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 >

dos下登录fedora下的vsftp失败

發(fā)布時間:2023/12/9 52 豆豆
生活随笔 收集整理的這篇文章主要介紹了 dos下登录fedora下的vsftp失败 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

我有兩個FTP站點:A - windows xp下的IIS, B - 虛擬機fedora12下的vsftp,都是正常運行的,同時這兩個站點都允許匿名訪問。

在dos下訪問A,或在fedora12終端下登錄B,都是成功的。但是在dos下訪問B,或在fedora12終端下訪問A都是失敗的。為什么呢?

?

想來想去不明白,因為我的windows xp已經(jīng)關(guān)閉了防火墻,而且fedora也已經(jīng)關(guān)閉了selinux。搞到最后原來是fedora12下的防火墻的緣故。

最后,把fedora下的防火墻也關(guān)了,命令如下:

[root@vsftpd #70]#service iptables stop
iptables:清除防火墻規(guī)則:???????????????????????????????? [確定]
iptables:將鏈設(shè)置為政策 ACCEPT:filter??????????????????? [確定]
iptables:正在卸載模塊:?????????????????????????????????? [確定]

這樣之后,就可以成功地登錄windows下的ftp-A了,同時,dos也可以成功地登錄fedora12下的B了。看看結(jié)果吧:

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 字節(jié),用時 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 字節(jié),用時 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下的防火墻的服務(wù)名是:iptables,現(xiàn)在才知道,慢慢積累吧!

?

總結(jié)

以上是生活随笔為你收集整理的dos下登录fedora下的vsftp失败的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。