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
- Open Settings | Build, Execution, Deployment | Deployment.
- Expand the Advanced section.
- Disable the Passive Mode checkbox.
- Apply the changes.
Please sign in to leave a comment.