1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

FTP not listing directory.

Discussion in 'Site & Server Administration' started by jhashan, Apr 20, 2014.

  1. #1
    Hi, I have installed cPanel on my VPS, everything working fine but only problem FTP not listing my directory I am getting this message

    Response: 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
    Response: 220-You are user number 1 of 50 allowed.
    Response: 220-Local time is now 21:56. Server port: 21.
    Response: 220-This is a private system - No anonymous login
    Response: 220-IPv6 connections are also welcome on this server.
    Response: 220 You will be disconnected after 15 minutes of inactivity.
    Command: USER emedicar
    Response: 331 User emedicar OK. Password required
    Command: PASS ************
    Response: 230 OK. Current restricted directory is /
    Command: SYST
    Response: 215 UNIX Type: L8
    Command: FEAT
    Response: 211-Extensions supported:
    Response: EPRT
    Response: IDLE
    Response: MDTM
    Response: SIZE
    Response: MFMT
    Response: REST STREAM
    Response: MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
    Response: MLSD
    Response: AUTH TLS
    Response: PBSZ
    Response: PROT
    Response: TVFS
    Response: ESTA
    Response: PASV
    Response: EPSV
    Response: SPSV
    Response: ESTP
    Response: 211 End.
    Status: Connected
    Status: Retrieving directory listing...
    Command: PWD
    Response: 257 "/" is your current location
    Command: TYPE I
    Response: 200 TYPE is now 8-bit binary
    Command: PASV
    Response: 227 Entering Passive Mode (5,44,97,34,119,249)
    Command: MLSD
    Error: Connection timed out
    Error: Failed to retrieve directory listing


    Please help me
     
    jhashan, Apr 20, 2014 IP
  2. aGig

    aGig Well-Known Member

    Messages:
    428
    Likes Received:
    5
    Best Answers:
    1
    Trophy Points:
    118
    #2
    I assume you setup passive port range in the config and have opened the ports in your firewall.

    Is it an issue for just one account or server wide?

    I've seen everything from permission issues to crazy mod_security rules that cause ftp issues.

    Depending on your linux experience a quick switch between pure and pro ftpd might give you a quick fix.

    Good luck.

    Mark
     
    aGig, Apr 20, 2014 IP
  3. jhashan

    jhashan Well-Known Member

    Messages:
    246
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    108
    #3
    @ aGig thanks for reply. This problem is for full server not only one account. I have tried with change FTP server pure to proftp but not solved. After install cpanel I did not installed any firewall or anything else.
     
    jhashan, Apr 20, 2014 IP
  4. sahabcse

    sahabcse Well-Known Member

    Messages:
    272
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    140
    #4
    edit your /etc/pure-ftpd.conf

    uncomment the line

    # PassivePortRange 30000 50000

    then add port range 30000:50000 to your firewall

    Please share the ftp error log files for further investigate the issue
     
    sahabcse, Apr 21, 2014 IP
  5. jhashan

    jhashan Well-Known Member

    Messages:
    246
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    108
    #5
    Hi, sahabcse I have edited pure-ftpd.conf and uncommented, restarted ftp server but still problem remaining, can you tell me how can I check ftp error log? also I dont installed any firewall. just installed cpanel nothing else.
     
    jhashan, Apr 21, 2014 IP
  6. sahabcse

    sahabcse Well-Known Member

    Messages:
    272
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    140
    #6
    Is there any entry in /var/log/pureftpd.log, It will be disabled by default and only works if you enable it in the /etc/pure-ftpd.conf
     
    sahabcse, Apr 21, 2014 IP
  7. juerald

    juerald Active Member

    Messages:
    352
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    65
    #7
    I dont use PureFTP but i think i have got your problem before.

    Did you selected it to open via SSH File Protocol? (SFTP) try to connect via SFTP not FTP.
     
    juerald, Apr 21, 2014 IP
  8. jhashan

    jhashan Well-Known Member

    Messages:
    246
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    108
    #8
    Yes SFTP is working but I need to work with FTP
     
    jhashan, Apr 21, 2014 IP
  9. juerald

    juerald Active Member

    Messages:
    352
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    65
    #9
    Where do you see problems working with SFTP , you should be happy to work with secure protocol.

    Is same to work but much secured.
     
    juerald, Apr 21, 2014 IP
  10. jhashan

    jhashan Well-Known Member

    Messages:
    246
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    108
    #10
    I know that but I have a client who will use this server and he want his server full working.
     
    jhashan, Apr 21, 2014 IP
  11. juerald

    juerald Active Member

    Messages:
    352
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    65
    #11
    Then check in your server administration if the SSH is enabled then disable if its disabled i suggest you to contact the hosting support.
     
    juerald, Apr 21, 2014 IP