Connection to a remote host fails in PhpStorm: ProFTPD server doesn't respond to PASV command

Problem

The FTP connection to a remote server configured in Settings | Build, Execution, Deployment | Deployment fails with:

Test FTP Conection
Connection to '203.0.113.2' failed.
Could not list the contents of folder "ftp://203.0.113.2/".

Cause

ProFTPD doesn't respond to PASV command.
The following lines can be found in the idea.log with additional debugging for FTP enabled:

FINE - #c.j.p.w.c.s.SocketWrapper - Default socket connection to /203.0.113.2:21 60000
FINE - #c.j.p.w.ftp - 220 ProFTPD Server (ProFTPD) [203.0.113.2]
FINE - #c.j.p.w.ftp - USER jdoe
FINE - #c.j.p.w.ftp - 331 Password required for jdoe
FINE - #c.j.p.w.ftp - PASS ***
FINE - #c.j.p.w.ftp - 230 User jdoe logged in
FINE - #c.j.p.w.ftp - TYPE I
FINE - #c.j.p.w.ftp - 200 Type set to I
FINE - #c.j.p.w.ftp - SYST
FINE - #c.j.p.w.ftp - 215 UNIX Type: L8
FINE - #c.j.p.w.ftp - PASV
INFO - #c.j.p.w.ftp - java.net.SocketException: Connection reset
WARN - #c.j.p.w.c.RemoteConnection - Retrying connecting to ftp://203.0.113.2:21/ in @195c2ec1: 1 iterations
org.apache.commons.vfs2.FileSystemException: Could not list the contents of folder "ftp://203.0.113.2/".

Resolution

  1. Open Settings | Build, Execution, Deployment | Deployment.
  2. Expand the Advanced section.
  3. Disable the Passive Mode checkbox.
  4. Apply the changes.
0 out of 0 found this helpful

Please sign in to leave a comment.

Have more questions?

Submit a request