windows ftp dos命令不支持 pasv 模式?

本文涉及的产品
云防火墙,500元 1000GB
简介: 问题: 使用bat批处理下载服务器数据,可以连接服务器ftp但下载失败,关闭客户端防火墙后ok,应该是被防火墙阻止,先尝试passive方式连接ftp,故有以下资料,但最终还是防火墙的设置问题。

问题: 使用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 Details

thankyou 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 Voters

After 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.
  • 4 years ago


其他解答:

{"subject":"Re: 请问如何在窗口DosFTP中使用PASV模式?","content":"发信人: CHh5945 (痴痴), 信区: Networking        
标  题: Re: 请问如何在窗口DosFTP中使用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.
  1. #1
    faigel 
    faigel is offline
    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?
  2. #2
    PeeJ73 
    PeeJ73 is offline
    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.

目录
相关文章
|
3天前
|
网络协议 数据建模 数据安全/隐私保护
网安快速入门之Windows命令
本文简要介绍了Windows命令行中常用的11个命令,帮助快速入门网络安全和系统管理。这些命令包括:`help`(获取命令帮助)、`copy`(复制文件)、`dir`(显示目录内容)、`cd`(更改当前目录)、`type`(显示文本文件内容)、`del`(删除文件)、`ipconfig`(查看网络配置)、`net`(用户和组管理)、`netstat`(显示网络连接)、`tasklist`(显示进程信息)和`sc`(服务控制)。每个命令都有其特定用途,掌握它们可以大大提高工作效率和系统维护能力。
|
2月前
|
Windows
DOS 批处理 setlocal命令、endlocal命令详解
DOS 批处理 setlocal命令、endlocal命令详解
68 10
|
2月前
|
Windows
DOS 批处理 setlocal命令、endlocal命令详解
setlocal这是一个命令,它开始局部化环境更改,通常在批处理文件中使用,以确保在脚本中所做的任何环境更改(例如设置或修改环境变量)不会影响到调用此批处理的上下文或其他批处理文件
126 14
|
2月前
|
存储 安全 数据库
适用于 Windows 的管理命令
以下命令可用于管理 Rational® Synergy。
22 1
|
3月前
|
Java Windows
JAVA 常用的 DOS 命令
【10月更文挑战第15天】DOS 命令是 Java 开发中不可或缺的工具,掌握这些命令可以提高开发效率和操作便利性。
52 3
|
3月前
|
人工智能 监控 安全
掌握Windows管理利器:WMI命令实战
本文介绍了Windows Management Instrumentation (WMI) 的基本概念和用途,通过多个实用的`wmic`命令示例,如获取CPU信息、查看操作系统详情、管理服务、检查磁盘空间等,展示了WMI在系统维护中的强大功能。适合IT专业人士学习和参考。
119 4
|
3月前
|
Windows
Windows系统命令dir使用详解
Windows系统命令dir使用详解
229 2
|
3月前
|
缓存 监控 网络协议
计算机网络的常用的网络通信命令(Windows)
本文介绍了网络技术中常用的命令,如ping用于检测网络连通性,ipconfig查看TCP/IP配置,netstat监控网络状态,arp显示和修改ARP缓存,at安排任务执行,tracert追踪路由,以及nbtstat获取NetBIOS信息。
59 1
|
3月前
|
网络协议 文件存储 Windows
Windows Server 2019 FTP服务器搭建
Windows Server 2019 FTP服务器搭建
126 0
|
3月前
|
安全 网络协议 网络安全
Windows Server 2003 FTP服务器搭建
Windows Server 2003 FTP服务器搭建

热门文章

最新文章