4
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?
1
Well there's another option and still being behind NAT. Configure the guest FTP server like http://serverfault.com/a/165468/126443 . Where the address will be 127.0.0.1 and port range should allow only 1 or 2 ports (ie 10000-10001). Then simply forward ports 21,10000 and 10001 from host machine to guest.
– antitoxic – 2012-09-30T14:39:49.867