日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

dos下登录fedora下的vsftp失败

發布時間:2023/12/9 编程问答 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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失败的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。