Ftp: 425 Unable to build data connection

Error Message:

LIST
425 Unable to build data connection: Connection timed out
PASV
227 Entering Passive Mode (xx,xx,xx,xx,xx,xxx).
connecting data channel to xx.xxx.xx.xxx:54963

The above error message is received while you Ftp to an account successfully but it does not list the files and directories within it. The reason for the error message is, the kernel modules that are required for Ftp “i.e. to keep track of every Ftp connection and carry out the data transfer of it on another port” is not loaded.

The modules are “ip_conntrack” and “ip_conntrack_ftp” which has to be loaded using the ‘modprobe’ command.

SSH to your server as user root and execute the following commands:

# /sbin/modprobe ip_conntrack
# /sbin/modprobe ip_conntrack_ftp

To verify if the modules are loaded properly, execute

# lsmod | grep ftp

This should list the modules you just loaded. Once they appear, ftp should list the files/directories on successful login.

This entry was posted on Friday, October 16th, 2009 and is filed under Linux Administration. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Comments are closed.