Linux – How to transfer files & directories from Windows (virtual machine) to Linux

linuxscpvirtual-machineswindows

I have Windows virtualbox virtual machine and i would like to transfer some files from it… i thought about using scp but i don't know what directory path should i write (i guess something like C:\something\something won't work from my Linux machine, will it?)

Edit:

  • I don't want to use shared folders
  • I would prefer guest (Windows) to not ftp/login/do anything with host (Linux)
  • Could you add command line examples for methods you're writing about?

Best Answer

If you're trying to copy files from the guest system to the host system (or the other way around), the easiest solution is to set up a shared folder. Check out the documentation for VirtualBox Folder Sharing.

If you already have ssh set up on your Linux machine and really want to use scp, you could always install WinSCP on your Windows virtual machine and use it, or use the SFTP client built in to PuTTY.