Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot browse SSHFS-mounted folders in File Explorer's Linux Integration #7729

Closed
1 of 2 tasks
suhailrehman opened this issue Nov 19, 2021 · 4 comments
Closed
1 of 2 tasks

Comments

@suhailrehman
Copy link

Version

Microsoft Windows [Version 10.0.22000.318]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5.10.60.1

Distro Version

Ubuntu 20.04

Other Software

SSHFS version 2.10.0
FUSE library version: 2.9.9
fusermount version: 2.9.9
using FUSE kernel interface version 7.19

Repro Steps

  1. Mount a remote folder via SSHFS in /mnt/ using a command like so:
sshfs -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=3,uid=$(id -u),gid=$(id -g) server.address:/path/to/folder/ /mnt/remotefolder/
  1. Browse to the folder in File Explorer:
explorer.exe .

Expected Behavior

Expect to be able to browse the remote files

Actual Behavior

I get the following error from within Explorer instead:
image

Diagnostic Logs

I noticed that the remote folder mounted by SSHFS is mounted without read/write permissions for others, but that's not a requirement to browse local files in explorer.exe.

@OneBlue
Copy link
Collaborator

OneBlue commented Nov 23, 2021

This might indeed be a permission issue.

Which user is your default user ? That's what the explorer file access runs as.

Also, what's the output of:
ls -la /mnt/remotefolder/ ?

@suhailrehman
Copy link
Author

I've mounted the remote folder using the uid and gid mapped to my default user and group (suhail). My remote folder is called roscoe

: /mnt$ ls -la /mnt
ls: cannot access '/mnt/g': No such device
total 24
drwxr-xr-x 11 root   root   4096 Nov 19 14:30 .
drwxr-xr-x 19 root   root   4096 Nov 15 14:32 ..
drwxrwxrwx  1 suhail suhail 4096 Nov 22 00:05 c
drwxrwxrwx  1 suhail suhail 4096 Nov 22 00:05 d
drwxrwxrwx  2 root   root   4096 Jun  2  2020 e
drwxrwxrwx  2 root   root   4096 May  1  2020 f
d?????????  ? ?      ?         ?            ? g
drwxrwx---  1 suhail suhail    9 Nov 19 13:53 roscoe
drwxrwx---  2 suhail suhail 4096 Nov 19 14:30 test
drwxrwxrwt  2 root   root     60 Nov 15 14:24 wsl
drwxrwxrwt  6 root   root    260 Nov 23 12:55 wslg

@ghost ghost removed the needs-author-feedback label Nov 23, 2021
@OneBlue
Copy link
Collaborator

OneBlue commented Nov 29, 2021

Ok thanks for the update. If suhail is the default user then this shouldn't be a permission issue.

Can you please follow the Record wsl logs manually section to collect logs of a repro ?

@ghost
Copy link

ghost commented Dec 6, 2021

This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-open it.

Thank you!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants