I'm having trouble setting up FTP between my host OS (Windows 7) and guest OS (Ubuntu 10.04). I used the network settings in VirtualBox to setup port forwarding on 80, 21, and 22. Accessing the webserver on port 80 works great but I'm having some problems with FTP on port 21 and SFTP on 22.
This is the output when I try connecting on port 21 in FileZilla:
Status: Connecting to 127.0.0.1:21... Status: Connection established, waiting for welcome message... Response: 220 (vsFTPd 2.2.2) Command: USER menuplus Response: 331 Please specify the password. Command: PASS ***** Response: 230 Login successful. Status: Connected Status: Retrieving directory listing... Command: PWD Response: 257 "/srv/www/vhosts/mp" Command: TYPE I Response: 200 Switching to Binary mode. Command: PASV Response: 227 Entering Passive Mode (10,0,2,15,205,164). Command: LIST Error: Connection timed out Error: Failed to retrieve directory listing
A connection is established, but the LIST command fails which makes me thing maybe the permissions on the guest OS are setup wrong, but the FTP user has full access to its home directory.
What could be wrong?