200 PORT command successful. Consider using PASV. 425 Failed to establish connection

前端 未结 4 1899
盖世英雄少女心
盖世英雄少女心 2020-12-05 18:32

I have setup FTP server in Ubuntu 12.04 LTS.

Now when when I try to connect to FTP server from Windows 7 through command-line ftp.exe, I get successfull

4条回答
  •  失恋的感觉
    2020-12-05 19:06

    Try using the passive command before using ls.

    From FTP client, to check if the FTP server supports passive mode, after login, type quote PASV.

    Following are connection examples to a vsftpd server with passive mode on and off

    vsftpd with pasv_enable=NO:

    # ftp localhost
    Connected to localhost.localdomain.
    220 (vsFTPd 2.3.5)
    Name (localhost:john): anonymous
    331 Please specify the password.
    Password:
    230 Login successful.
    Remote system type is UNIX.
    Using binary mode to transfer files.
    ftp> quote PASV
    550 Permission denied.
    ftp> 
    

    vsftpd with pasv_enable=YES:

    # ftp localhost
    Connected to localhost.localdomain.
    220 (vsFTPd 2.3.5)
    Name (localhost:john): anonymous
    331 Please specify the password.
    Password:
    230 Login successful.
    Remote system type is UNIX.
    Using binary mode to transfer files.
    ftp> quote PASV
    227 Entering Passive Mode (127,0,0,1,173,104).
    ftp> 
    

提交回复
热议问题