問題: 使用bat批處理下載伺服器資料,可以串連伺服器ftp但下載失敗,關閉用戶端防火牆後ok,應該是被防火牆阻止,先嘗試passive方式串連ftp,故有以下資料,但最終還是防火牆的設定問題。
最終解決:開啟防火牆的提示功能,發現還是ftp.exe未被允許,開啟此程式後下載正常。
試過 passive
literal pasv
quote PASV
貌似都不起作用
有相關解決方案 可能可行:http://passive-ftp.com/
其他有說可以的試過不可行
http://answers.yahoo.com/question/index?qid=20090115031718AAMJlhO
Resolved Question
Show
me another»How to change MS DOS ftp to passive mode?i can connect to my server using the command prompt, but i keep getting a socket error. How to i change it to passive ftp. I'd like the ms dos code if possible please.
Cheers
Additional Detailsthankyou joe.attaboy, whilst your solution did not work, it did help me look it up (you have to type QUOTE PASV apparantly) because I am running XP.
Didn't solve my larger problem though
4 years ago
?
Best Answer - Chosen by VotersAfter you connect to the FTP server, at the ftp prompt, enter:
PASV
You should get a response verification from the other end.
Edit:
Well, it's been a while since I did an FTP in Windows or DOS.
You might want to try an FTP client, some kind of ftp software. I'm a Linux user myself, and I use gFTP, but I doubt that's available for Windows. There should be some ftp Windows client available.
其他解答:
{"subject":"Re: 請問如何在視窗Dos的FTP中使用PASV模式?","content":"發信人:
CHh5945 (癡癡), 信區: Networking
標 題: Re: 請問如何在視窗Dos的FTP中使用PASV模式?
發信站: BBS 水木清華站 (Sun Feb 27 11:24:25 2000)
這個早就試過,好像不行。
但是使用LeapFTP、CuteFTP的PASV卻可以,一直不明白。
請看下面的:
C:\\>ftp ia.hust.edu.cn
Connected to ia.hust.edu.cn.
220-Serv-U FTP-Server v2.3b for WinSock ready...
220-Welcome to this FTP server
220-welcome to upload some small software in incoming directory
220-本FTP只對教育網可以訪問的免費範圍開放
220-所有軟體僅供教學科研使用,不得用於贏利的目的
220-由於硬碟空間限制,不歡迎上傳過大軟體
220-不得上傳違反國家法律法令的內容
220 若使用者發現本FTP上有違反法律的內容,請及時來信通知
User (ia.hust.edu.cn:(none)): anonymous
331 User name OK, please send complete E-mail address as password
Password:
230 User ANONYMOUS logged in
ftp> literal pasv
227 Entering Passive Mode
(202,114,14,38,10,104)
ftp> literal list -al
Connection closed by remote host.
ftp>
再進入PASV模式後,ls、get、list等都不行。
【 在 November (秋江風浪多@.@最後醒來的鴕鳥) 的大作中提到: 】
: 醬紫:
: 在ftp xxx.xxx.xxx.xxx 後,
: 輸入使用者名稱(如anonymous)和密碼後
: 在 ftp> 模式下輸入 literal,然後會問你 Command line to send
: 輸入PASV就行了,當然,你的FTP伺服器要支援才行。
: 然後就可以用get,mget這樣的命令來取檔案了。
: 在 windows98下是這樣的。在linux下直接用passive命令就行了
其他解答:http://www.linuxforums.org/forum/servers/19666-vsftpd-server-425-use-port-pasv-first.html
也不行,貌似只適用於linux
get this when uploading or dowloading files: Code: 425 Use PORT or PASV first. Can anyone help me?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-01-2005#1faigel
Just Joined!
-
Join Date
-
Dec 2004
-
Location
-
In a shop
-
Posts
-
8
vsFTPd server:425 Use PORT or PASV first.
i get this when uploading or dowloading files:
Code:
425 Use PORT or PASV first.
Can anyone help me?
Reply
With Quote
- 12-05-2005#2PeeJ73
Just Joined!
-
Join Date
-
Dec 2005
-
Location
-
Adelaide, South Australia
-
Posts
-
1
PASV vs PORT
The FTP server wants to know whether to use a port-mode channel or passive-mode data channel. Most clients will set this up for you transparently (and generally choose passive 'cos it's newer and better). To send a command to the server you use the 'quote'
command. Hence if you type:
quote PASV
then it should all work nicely. As an aside, if you type 'remotehelp' then it should show you all the commands that the server can receive - all these can be used with the 'quote' command.
Reply
With Quote