I need to transfer some files into a guest computer in VirtualBox, and I think FTP would be a good way, but am having trouble connecting the two "computers".
I tried running:
sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist
then running:
ifconfig | grep "inet "
and grabbing the address returned that wasn't 127.0.0.1.
I even downloaded the FTPD Enable app, but when I visit ftp://192.168.1.119/
in a browser it's just an empty directory.
Is there a setting in Preferences -> Sharing I need to set, or is the FTP leading to a directory somewhere that might just be empty?
When going to higher level directories, (ftp://192.168.1.119/../../../../../../../../../
), they all look the same.
I wouldn't think it should be necessary to install OSX Server for this.
Best Answer
Okay so to move files btwn host and guest (virtualbox) i was able to set up ftp on the host as noted above and access the host from the guest either via browser by doing:
Substituting username and password with my user/admin username and password.
OR (even better) simple from the command line:
The the commands within the ftp interface are mostly quite similar to bash/unix commands.
Hey! What happened there? We have to go into passive mode:
get will retrieve a single file and wget will get files matching request. for example:
Here's a list if basic ftp commands.
Command to turn off ftp on the host is: