AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
Expand all | Collapse all

Unable to transfer files in Passive Mode through PROFTP

  • 1.  Unable to transfer files in Passive Mode through PROFTP

    Posted Tue July 20, 2010 01:52 PM

    Originally posted by: ysreddy


    Hi,

    I have recently configured proftpd in an AIX server. I have commented normal FTP service in inetd.conf file and made a entry for proftpd. When I issue "lssrc -t ftp" it is showing only proftpd. I am able to transfer files through "active" mode but I am unable to transfer files through "passive" mode. Can anyone help me out in resolving the problem.

    1. grep ftp /etc/inetd.conf
    #ftp stream tcp6 nowait root /usr/sbin/ftpd ftpd
    #ftp stream tcp6 nowait root /usr/sbin/ftpd ftpd
    ftp stream tcp6 nowait root /usr/opt/freeware/sbin/proftpd proftpd

    1. root@yesmqp1:> lssrc -t ftp
    Service Command Description Status
    ftp /usr/opt/freeware/sbin/proftpd proftpd active

    I have also updated the proftpd.conf file:
    PassivePorts 30000 35000

    These are the errors am getting:
    ftp> passive
    Passive mode on.
    ftp> ls
    421 Service not available, remote server has closed connection
    Passive mode refused. Try PORT
    No control connection for command: Transport endpoint is not connected
    ftp> quit

    the user is studionow, passwd Studi0n0w1

    ftp> ls
    227 Entering Passive Mode (0,0,0,0,119,155).
    ftp: connect: A remote host refused an attempted connect operation.

    Thanks in advance. Sree


  • 2.  Re: Unable to transfer files in Passive Mode through PROFTP

    Posted Wed July 21, 2010 03:53 AM

    Originally posted by: hdkutz


    Hello,
    is there a firewall between you and your machine?
    If so, is there a rule to allow those passive ports?

    Cheers,
    ku