Page 1 of 1

Sharing the Ubuntu guest file system with the macOS host

Posted: 5. Nov 2017, 23:06
by FernandoKC
I have an Ubuntu server guest running on macOS High Sierra, and I'd like to access the Ubuntu file system from my Mac.

I tried the "Shared Folder" option, but it goes the wrong way (share macOS folders into Ubuntu), while I want the exact opposite.

Any suggestions?

Thanks!

Re: Sharing the Ubuntu guest file system with the macOS host

Posted: 5. Nov 2017, 23:13
by Perryg
Use a network share with either bridged or host-only.

Re: Sharing the Ubuntu guest file system with the macOS host

Posted: 6. Nov 2017, 00:52
by FernandoKC
Could you elaborate please? O:-)

Re: Sharing the Ubuntu guest file system with the macOS host

Posted: 6. Nov 2017, 01:06
by Perryg
There's not a whole lot to elaborate on. You setup the host and guest to be able to talk to each other ( ping ) by using what I suggested above and then use a standard network share. Typically Linux would need to have samba and if memory serves my so would the Mac. Google Ubuntu on how to do this with the Ubuntu server and if you don't know how to do this on the Mac they have a forum as well.

Re: Sharing the Ubuntu guest file system with the macOS host

Posted: 6. Nov 2017, 08:49
by Nap
An option you might consider is to install FUSE for macOS from SourceForge, and then sshfs from github or Homebrew.
Then, you can mount the Ubuntu filesystem using something like: sshfs user@ubuntu.local:/ /mounts/ubuntu.
I have public key authentication on my VM, so I use a ~/.ssh/config entry instead of the user@machine syntax. You may need to use sudo, and there is an option, -o allow_other, which enables other users to see the mount, otherwise only the user who creates the mount will see it. Once mounted, you can browse/edit the file system through Finder, which does respect user permissions.