Facing issue with ftp passive mode on

Solution Verified - Updated -

Issue

  • Able to login ftp server but when passive mode is "ON" all command get hung.However in passive mode "OFF" then all ftp commands workings fine.
  • Example when ftp use to get hung state
$ ftp xx.yy.zz.ww 21
Connected to xx.yy.zz.ww.
220 (vsFTPd 2.0.5)
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (xx.yy.zz.ww:test): xxx
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> dir
[1]+  Stopped                 ftp xx.yy.zz.ww  (it was hung when issued dir command)
  • Example with passive command
Connected to xx.yy.zz.ww.
220 (vsFTPd 2.0.5)
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (xx.yy.zz.ww:test): XXXX
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> passive
Passive mode off.
ftp> mput yum.log.1
mput yum.log.1? y
200 PORT command successful. Consider using PASV.
150 Ok to send data.
226 File receive OK.
2588 bytes sent in 0.00014 seconds (1.8e+04 Kbytes/s)
ftp>

Environment

  • Red Hat Enterprise Linux(RHEL)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content