简体   繁体   English

与Windows 8到z / OS的FTP失败,并显示“无法打开数据连接”

[英]FTP to/from Windows 8 to z/OS fails with “Unable to open data connection”

Has anyone successfully used FTP between az/OS systems (running z/OS V1.13 or V2.2) and a windows 8.1 Enterprise machines? 有没有人成功地在z / OS系统(运行z / OS V1.13或V2.2)和Windows 8.1 Enterprise计算机之间使用FTP? We used to do this without any problems under XP but then our XP desktops were replaces with laptops running Windows 8, and FTP no longer works. 我们曾经在XP下完成此操作而没有任何问题,但是后来XP台式机被运行Windows 8的笔记本电脑所取代,FTP不再起作用。

When stating an FTP sessions from the Windows shell, I can log onto the mainframe, but can no longer access any files. 从Windows Shell声明FTP会话时,我可以登录大型机,但无法再访问任何文件。

We raised a ticket with our desktop support team, thinking that perhaps one of the ports used by FTP, which was previously open under XP, was being blocked by the Windows 8 firewall. 我们向桌面支持团队提出了要求,认为Windows 8防火墙可能阻止了FTP使用的端口之一(该端口以前在XP下打开)。 they are unable to solve the problem. 他们无法解决问题。

As an interim solution, we can FTP from z/OS to/from a Solaris FTP server in our organisation and from that server we can FTP to/from our Windows 8 desktops. 作为一个临时解决方案,我们可以从z / OS到组织中的Solaris FTP服务器之间进行FTP,并且可以从该服务器从Windows 8桌面之间进行FTP。

I can also use WinSCP to FTP to/from files stored in the USS side of our z/OS system, so individually everything seems to be working. 我还可以使用WinSCP到存储在z / OS系统USS端的文件之间进行FTP传输,因此看来一切正常。 WinSCP can also talk to the Solaris FTP server (using SFTP, I think). WinSCP也可以与Solaris FTP服务器通信(我认为使用SFTP)。

Is there any fundamental issue with FTP between these 2 platforms? 这两个平台之间的FTP是否有任何根本性的问题? (Windows 8 and z/OS). (Windows 8和z / OS)。

Edit - here is the log when trying to FTP from a Windows DOS prompt. 编辑-这是尝试从Windows DOS提示符下FTP时的日志。 there was a long wait between the 200 Port request OK. 200 Port request OK.之间等待了很长时间200 Port request OK. and the 425 Unable to open data connection. 425 Unable to open data connection.

H:\>ftp 10.179.1.1
Connected to 10.179.1.1.
220-FTPD1 IBM FTP CS V1R13 at JXSF.BC.JSPLC.NET, 11:22:33 on 2016-11-24.
220 Connection will close if idle for more than 5 minutes.
User (10.179.1.1:(none)): jbsp03
331 Send password please.
Password:
230 JBSP03 is logged on.  Working directory is "JSDBSP.".
ftp> ls
200 Port request OK.
425 Unable to open data connection.
ftp>

I can't seems to get WinSCP to attempt to connect to the z/OS environment - FTP requests seems to be directed to the USS environment. 我似乎无法让WinSCP尝试连接到z / OS环境-FTP请求似乎定向到USS环境。 At a previous site I could use WinSCP to connect to both, depending upon (I think) whether I used FTP or SFTP. 在以前的站点上,我可以使用WinSCP连接到这两者,具体取决于(我认为)是使用FTP还是SFTP。

Windows built-in command-line FTP client, the ftp.exe supports active FTP mode only. Windows内置命令行FTP客户端, ftp.exe仅支持活动FTP模式。

In the active mode, the server has to connect back to the client machine to transfer files and to retrieve directory listing. 在活动模式下,服务器必须连接回客户端计算机以传输文件并检索目录列表。

With the default configuration, the incoming connection is blocked by Windows firewall. 使用默认配置,传入连接被Windows防火墙阻止。 Hence the: 因此:

425 Unable to open data connection.

I believe was the same on Windows XP (at least on SP2), but you might had the firewall disabled on the XP or you might had explicit rules to enable the incoming connection. 我相信在Windows XP上(至少在SP2上)是相同的,但是您可能在XP上禁用了防火墙,或者可能有明确的规则来启用传入连接。

You can do the same on Windows 8. 您可以在Windows 8上执行相同的操作。

See my article about network configuration for FTP active mode for details. 有关详细信息,请参阅我的有关FTP活动模式的网络配置的文章。


Or use another command-line/scriptable FTP client, that supports a passive mode (most do). 或使用另一个支持被动模式的命令行/可编写脚本的FTP客户端(大多数情况下)。 In the passive mode, the client connects to the server, what is problem-free usually. 在被动模式下,客户端连接到服务器,这通常是没有问题的。

As you are using my WinSCP FTP client already, you can use it instead of the ftp.exe . 当您使用 的WinSCP的FTP客户端已经,你可以用它代替的ftp.exe WinSCP has a scripting interface and there's a guide for converting Windows FTP scripts to WinSCP scripts . WinSCP具有脚本编制界面,并且提供了将Windows FTP脚本转换为WinSCP脚本的指南 WinSCP defaults to the passive mode. WinSCP默认为被动模式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将文件复制到AWC EC2 Windows服务器上的FTP服务器失败,并显示“无法建立数据连接:连接等待时间已到期” - Copying files to an FTP server on AWC EC2 Windows server fails with “Unable to build data connection: The connection waiting time has expired” 从Windows批处理文件将文件上传到FTP时,出现“无法打开与端口xxxx的数据连接” - Getting “Could not open data connection to port xxxx” when uploading file to FTP from Windows batch file z/OS ftp:550 无法为 STOR 命令创建数据集 E043156.UNIX.USERLIB.SOME - z/OS ftp: 550 Unable to create data set E043156.UNIX.USERLIB.SOME for STOR command 使用 Python 和 ftplib.FTP 从 z/os 下载文本文件 - Downloading text files with Python and ftplib.FTP from z/os 从Azure VM打开活动FTP连接 - Open Active FTP Connection From Azure VM PHPStorm FTP 连接失败 - PHPStorm FTP Connection Fails FTP::connection() 随机失败 - FTP::connection() randomly fails Node.js [promise-ftp] - 从 FTP 下载多个文件时无法建立数据连接(错误:连接 ECONNREFUSED...) - Node.js [promise-ftp] - Unable to make data connection (Error: connect ECONNREFUSED...) while downloading multiple files from FTP 从Azure网站上载文件到FTP时出现“ 425无法打开数据连接” - “425 Can't open data connection” when uploading file from Azure Web Site to FTP 无法打开FTP连接 - Failed to open an FTP connection
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM