Midrange News for the IBM i Community

Posted by: Bob Cozzi
Rogue Programmer
Cozzi Productions, Inc.
Disabling FTP Passive Mode on IBM i
has no ratings.
Published: 18 Jan 2012
Revised: 23 Jan 2013 - 4055 days ago
Last viewed on: 01 Mar 2024 (18250 views) 

Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.

Disabling FTP Passive Mode on IBM i Published by: Bob Cozzi on 18 Jan 2012 view comments

On some systems, PASSV mode FTP doesn't work correctly. There are PTFs for this starting with IBM i v6r1. For earlier releases, you have 2 options, both involve disabling FTP passive mode.

Option 1: During the FTP session, disable Passive Mode by typing in the following FTP command:

  • SENDEPSV - Turns off Extended Passive Mode
  • SENDPASV - Turns off Passive Mode

Option 2: The first option can be problematic if you are forgetful. An alternative is to create a couple of Data Areas. if these data areas exist when an FTP session is started, the passive modes are disabled.


Now when FTP is started, both Passive and Extended Passive modes are automatically disabled.

Remember, the data area method is nice because it applies system-wide to all new FTP sessions without having to sign off/on the system.

There is also a suggestion to turn off Extended Port, to do that, create the following data area:


Disables EPORT if PTF SI33243 is also installed, unless on v6r1 or later, then only the data area is needed.

Return to midrangenews.com home page.
Sort Ascend | Descend