Fusion

 View Only
  • 1.  Shared folders are not available from within an ssh session

    Posted Oct 20, 2022 05:41 AM

    I'm using VMware 12.2.4 with both host and guest running 11.7

    There is a folder on host shared with the guest for both reading and writing. I can access the directory from within VMware's GUI session, but when I ssh using the same user I suddenly lose access: commands such `ls` give back "Operation not permitted".

    My guess is that some authorization is not kicking in when I'm connecting over ssh, but I have no idea how to fix that.



  • 2.  RE: Shared folders are not available from within an ssh session

    Posted Oct 20, 2022 02:10 PM

    If you open the Terminal app from within the GUI session in the VM, can you access the shared folder from there? Or do you still get the “operation not permitted”?



  • 3.  RE: Shared folders are not available from within an ssh session

    Posted Oct 21, 2022 01:25 AM

    It does work within the GUI session.



  • 4.  RE: Shared folders are not available from within an ssh session

    Posted Oct 21, 2022 03:43 PM

    See https://discussions.apple.com/thread/251027260 - it appears this is a similar issue to what you're seeing. It is a macOS issue, not related to Fusion.

    The article suggests that you give Full Disk Access to the shell you're using (the default shell for Big Sur is /bin/zsh instead of /bin/bash) 



  • 5.  RE: Shared folders are not available from within an ssh session
    Best Answer

    Posted Oct 21, 2022 06:06 PM

    Indeed, it turned up to be an issue with how permissions on macOS.

    I needed to enable Full Disk Access for remote users (System Preferences -> Sharing -> Remote Login -> Allow full disk access for remote users)