FTP server on linux guest
Posted: 6. Oct 2009, 08:33
Hi together,
I just installed Virtual Box with a Debian linux guest OS system. Everything went fine, I can access my webserver from the host with these additional lines in the machine configuration:
Now I tried the same for the vsftpd running on the guest OS:
I can connect and authenticate, but I don't get the file list. The problem is that passive and active FTP uses a dynamic port for sending this data:
How can I achieve an FTP connection?
Thanks for tips, Gérôme
I just installed Virtual Box with a Debian linux guest OS system. Everything went fine, I can access my webserver from the host with these additional lines in the machine configuration:
Code: Select all
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/guesthttp/Protocol" value="TCP"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/guesthttp/HostPort" value="80"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/guesthttp/GuestPort" value="80"/>
Code: Select all
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestftp/Protocol" value="TCP"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestftp/HostPort" value="21"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestftp/GuestPort" value="21"/>
Code: Select all
Status: Verbinde mit 192.168.56.1:21...
Status: Verbindung hergestellt, warte auf Willkommensnachricht...
Antwort: 220 Welcome to Debian FTP service.
Befehl: USER www
Antwort: 331 Please specify the password.
Befehl: PASS *******
Antwort: 230 Login successful.
Befehl: OPTS UTF8 ON
Antwort: 200 Always in UTF8 mode.
Status: Verbunden
Status: Empfange Verzeichnisinhalt...
Befehl: PWD
Antwort: 257 "/"
Befehl: TYPE I
Antwort: 200 Switching to Binary mode.
Befehl: PASV
Antwort: 227 Entering Passive Mode (10,0,2,15,196,59)
Befehl: LIST
Fehler: Zeitüberschreitung der Verbindung
Fehler: Verzeichnisinhalt konnte nicht empfangen werden
Thanks for tips, Gérôme