Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Windows 7 installed on my laptop. I installed VirtualBox 4.1.4 with Ubuntu 11.10.

I'm trying to connect to my site via FTP but I got an error when I do ls:

~> ftp <my_site>
Connected to <my_site>.
220 DreamHost FTP Server
Name (<my_site>:misha): <my_username>
331 Password required for <my_username>
Password: <my_password>
230 User <my_username> logged in
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
200 PORT command successful
425 Unable to build data connection: Connection timed out

What could be the problem?

share|improve this question
up vote 13 down vote accepted

The connection is establishing but it is unable to set up the return data path.

This is likely because something in the path isn't supporting PORT mode ftp from the source (the perimeter router perhaps).

Try using ftp -p which will begin the client in passive (PASV) mode.

share|improve this answer
Thanks! ftp -p works well. – Misha Moroshko Nov 10 '11 at 23:34
I'm using newer versions of Ubuntu and Virtualbox, and the passive mode helped me as well, +1! – gustavohenke Jul 20 at 14:42

where is your server is it local ? if not,
in active FTP your you have issue with NAT translation as connection port is fixed port 21 but for data port may varies above 1024, due to NAT from pool FTP application is not able to establish DATA connection.

if you use windows ftp.exe it dosent support Passive FTP mode , so PASV command wont work. only ubuntu/unix OS support Passive FTP, here server will initiate data port , and will ask remote to connect via that port.

as your Service provider for /30 public ip issue will resolve.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .