Wsl 2 WSL2&;sshfs可以';t使用explorer.exe打开装入的目录
我想在通过ssh连接的机器上远程工作。 远程计算机运行CentOS 6.10,该操作系统(远程ssh)。 不幸的是,在远程计算机上安装更新等不是一个选项 到目前为止,我能够在WSL2中使用Wsl 2 WSL2&;sshfs可以';t使用explorer.exe打开装入的目录,wsl-2,sshfs,Wsl 2,Sshfs,我想在通过ssh连接的机器上远程工作。 远程计算机运行CentOS 6.10,该操作系统(远程ssh)。 不幸的是,在远程计算机上安装更新等不是一个选项 到目前为止,我能够在WSL2中使用sshfs挂载目录 sshfs user@remote:folder /mnt/c/folder 问题是我无法打开挂载的目录 当我在WSL2用户的主目录中装载远程目录时,我无法从Windows资源管理器访问它: 并使用Powershell拒绝访问 $ cd folder cd : Access is den
sshfs
挂载目录
sshfs user@remote:folder /mnt/c/folder
问题是我无法打开挂载的目录
当我在WSL2用户的主目录中装载远程目录时,我无法从Windows资源管理器访问它:
并使用Powershell拒绝访问
$ cd folder
cd : Access is denied
At line:1 char:1
+ cd folder
+ ~~~~~~~
+ CategoryInfo : PermissionDenied: (\\wsl$\Ubuntu\home\user\folder:String) [Set-Location], UnauthorizedAcce
ssException
+ FullyQualifiedErrorId : ItemExistsUnauthorizedAccessError,Microsoft.PowerShell.Commands.SetLocationCommand
cd : Cannot find path '\\wsl$\Ubuntu\home\user\folder' because it does not exist.
At line:1 char:1
+ cd folder
+ ~~~~~~~
+ CategoryInfo : ObjectNotFound: (\\wsl$\Ubuntu\home\user\folder:String) [Set-Location], ItemNotFoundExcept
ion
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand
当我在Windows文件系统上装载远程目录时(使用sudo
),我可以使用explorer.exe
和PowerShell访问该目录,但它是空的。
我检查过,当我使用WSL2访问它时,它不是空的
目录的权限如下所示:
- 在远程主机上:
drwxrwx
- 在WSL中(本地):
drwxrwx
- 通过PowerShell(本地):
d-----
否则,我可能必须安装。您试图通过sshfs装载的远程文件夹的权限是什么?我更新了问题。通过PowerShell的权限似乎是问题所在。我会尽量把它们设置正确。谢谢