Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a Mac (OS X) and a VirtualBox running Ubuntu.

I want to SCP a 500mb file from the Mac to the VirtualBox. How do I do this? (Probably something to do with /etc/hosts?)

share|improve this question
add comment

4 Answers 4

Put network settings from NAT to bridged adapter in Virtualbox settings for that machine. Then your virtual machine will be in local network with your host machine. It will probably get the IP from modem if DHCP is enabled, then scp to that machine.
You also need to have ssh-server installed on Ubuntu machine:
sudo apt-get install openssh-server
That should work: scp file host:/some/directory

share|improve this answer
add comment

After having installed Guest Additions you will be able to create shared folders for access from both, host and guest OS. Any directory on the host can be used for this. The shared folder needs to be mounted on the guest OS by:

sudo mount -t vboxsf [-o OPTIONS] sharename mountpoint

See also this answer on usage of shared folders. To make shared folders acessible on each boot of the guest os, you need to add the mounts to the guest fstab.

Alternatively you can also access directories from the host by adressing them using network shares.

share|improve this answer
add comment

If you install the Virtualbox Guest Addons you can create a shared folder. Then use vboxmount (as root) under Ubuntu to mount the shared folder. Afterward, copy normally (cp).

If you actually need to use scp, let me know. I will dig up that information.

share|improve this answer
    
can you give us more details on how to use vboxmount? –  Takkat Jun 13 '11 at 8:21
    
Take a look at Shared folders for details. –  Azizur Jun 13 '11 at 10:15
add comment

Cyberduck

fugu

You could also run WinSCP under wine..

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.