SSH to Windows VM cannot access shared folders

Discussion in 'Windows Guest OS Discussion' started by ThierryL4, Oct 9, 2022.

  1. ThierryL4

    ThierryL4 Bit Poster

    Messages:
    5
    Hi,
    Using Parallels 18.0.2 (53077) on macOS 12.6, I have a Windows 10 VM. It has one shared folder. From the Windows desktop, the shared folder is seen as Z:. I can access Z: from a PowerShell window.

    The SSH server is configured on the Windows VM, PowerShell is set as default shell, proper key setup allows SSH login using the same user name as the Windows desktop session. From the Mac host, I use the following command "ssh 10.211.55.3 dir Z:/" and I get the error message:

    dir : Cannot find drive. A drive with the name 'Z' does not exist.
    At line:1 char:1
    + dir Z:/
    + ~~~~~~~
    + CategoryInfo : ObjectNotFound: (Z:String) [Get-ChildItem], DriveNotFoundException
    + FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand


    From a PowerShell window in the Windows desktop session, the same command "dir Z:/" works properly.

    Any idea of what prevents an SSH PowerShell session from accessing the shared folder?
     

Share This Page