winfsp / sshfs-win

SSHFS For Windows
https://winfsp.dev
Other
5.07k stars 254 forks source link

System error 67 has occurred #384

Open dubidubno opened 1 year ago

dubidubno commented 1 year ago

I have installed winfsp-2.0.23075.msi and sshfs-win-3.5.20357-x64.msi on Windows 11 Pro 22H2 build 22621.1413. When I do net use z: \\sshfs.k\usere@server.mydomain.com i get "System error 67 has occurred. The network name cannot be found." ssh to the same user/host works fine.

Any suggestions?

PS C:\Program Files (x86)\WinFsp\bin> .\diag.bat
WINFSP FSD

SERVICE_NAME: WinFsp+20230327T134221Z
        TYPE               : 2  FILE_SYSTEM_DRIVER
        STATE              : 4  RUNNING
                                (STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        WIN32_EXIT_CODE    : 0  (0x0)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0
[SC] QueryServiceConfig SUCCESS

SERVICE_NAME: WinFsp+20230327T134221Z
        TYPE               : 2  FILE_SYSTEM_DRIVER
        START_TYPE         : 3   DEMAND_START
        ERROR_CONTROL      : 1   NORMAL
        BINARY_PATH_NAME   : \??\C:\Program Files (x86)\WinFsp\SxS\sxs.20230327T134221Z\bin\winfsp-x64.sys
        LOAD_ORDER_GROUP   :
        TAG                : 0
        DISPLAY_NAME       : WinFsp+20230327T134221Z
        DEPENDENCIES       :
        SERVICE_START_NAME :

D:(D;;WP;;;WD)(A;;LCRP;;;WD)(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)

WINFSP DLL

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider\Order
    ProviderOrder    REG_SZ    WinFsp.Np,RDPNP,P9NP,LanmanWorkstation,webclient

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinFsp.Np\NetworkProvider
    Name    REG_SZ    Windows File System Proxy
    ProviderPath    REG_SZ    C:\Program Files (x86)\WinFsp\SxS\sxs.20230327T134221Z\bin\winfsp-x64.dll
    DeviceName    REG_SZ    \Device\WinFsp.Mup

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Application\WinFsp
    EventMessageFile    REG_SZ    C:\Program Files (x86)\WinFsp\SxS\sxs.20230327T134221Z\bin\winfsp-x64.dll
    TypesSupported    REG_DWORD    0x7

WINFSP LAUNCHER

SERVICE_NAME: WinFsp.Launcher
        TYPE               : 10  WIN32_OWN_PROCESS
        STATE              : 4  RUNNING
                                (STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
        WIN32_EXIT_CODE    : 0  (0x0)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0
[SC] QueryServiceConfig SUCCESS

SERVICE_NAME: WinFsp.Launcher
        TYPE               : 10  WIN32_OWN_PROCESS
        START_TYPE         : 2   AUTO_START
        ERROR_CONTROL      : 0   IGNORE
        BINARY_PATH_NAME   : "C:\Program Files (x86)\WinFsp\SxS\sxs.20230327T134221Z\bin\launcher-x64.exe"
        LOAD_ORDER_GROUP   :
        TAG                : 0
        DISPLAY_NAME       : WinFsp.Launcher
        DEPENDENCIES       :
        SERVICE_START_NAME : LocalSystem

D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)

WINFSP REGISTRY

HKEY_LOCAL_MACHINE\SOFTWARE\WinFsp
    SxsDir    REG_SZ    C:\Program Files (x86)\WinFsp\SxS\sxs.20230327T134221Z\
    InstallDir    REG_SZ    C:\Program Files (x86)\WinFsp\

HKEY_LOCAL_MACHINE\SOFTWARE\WinFsp\Services

HKEY_LOCAL_MACHINE\SOFTWARE\WinFsp\Services\sshfs
    Executable    REG_SZ    C:\Program Files\SSHFS-Win\bin\sshfs-win.exe
    CommandLine    REG_SZ    svc %1 %2 %U
    Security    REG_SZ    D:P(A;;RPWPLC;;;WD)
    JobControl    REG_DWORD    0x1
    Credentials    REG_DWORD    0x1

HKEY_LOCAL_MACHINE\SOFTWARE\WinFsp\Services\sshfs.k
    Executable    REG_SZ    C:\Program Files\SSHFS-Win\bin\sshfs-win.exe
    CommandLine    REG_SZ    svc %1 %2 %U
    Security    REG_SZ    D:P(A;;RPWPLC;;;WD)
    JobControl    REG_DWORD    0x1
    Credentials    REG_DWORD    0x0

HKEY_LOCAL_MACHINE\SOFTWARE\WinFsp\Services\sshfs.kr
    Executable    REG_SZ    C:\Program Files\SSHFS-Win\bin\sshfs-win.exe
    CommandLine    REG_SZ    svc %1 %2 %U
    Security    REG_SZ    D:P(A;;RPWPLC;;;WD)
    JobControl    REG_DWORD    0x1
    Credentials    REG_DWORD    0x0
    sshfs.rootdir    REG_DWORD    0x1

HKEY_LOCAL_MACHINE\SOFTWARE\WinFsp\Services\sshfs.r
    Executable    REG_SZ    C:\Program Files\SSHFS-Win\bin\sshfs-win.exe
    CommandLine    REG_SZ    svc %1 %2 %U
    Security    REG_SZ    D:P(A;;RPWPLC;;;WD)
    JobControl    REG_DWORD    0x1
    Credentials    REG_DWORD    0x1
    sshfs.rootdir    REG_DWORD    0x1

FILE SYSTEM FILTERS (REQUIRES ADMINISTRATOR)

Filter listing failed with error: 0x80070005
Access is denied.

Host Name:                 TOUCHY
OS Name:                   Microsoft Windows 11 Pro
OS Version:                10.0.22621 N/A Build 22621
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Standalone Workstation
OS Build Type:             Multiprocessor Free
Registered Owner:          jarle
Registered Organization:
Product ID:                00330-54049-66295-AAOEM
Original Install Date:     04.11.2022, 21:30:47
System Boot Time:          27.03.2023, 15:44:05
System Manufacturer:       ASUSTeK COMPUTER INC.
System Model:              ASUS EXPERTBOOK B7402FEA_B7402FEASystem Type:               x64-based PC
Processor(s):              1 Processor(s) Installed.
                           [01]: Intel64 Family 6 Model 140 Stepping 2 GenuineIntel ~2918 Mhz
BIOS Version:              American Megatrends International, LLC. B7402FEA.306, 12.05.2022
Windows Directory:         C:\Windows
System Directory:          C:\Windows\system32
Boot Device:               \Device\HarddiskVolume1
System Locale:             no;Norwegian (Bokmal)
Input Locale:              no;Norwegian (Bokmal)
Time Zone:                 (UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna
Total Physical Memory:     16 074 MB
Available Physical Memory: 7 897 MB
Virtual Memory: Max Size:  42 698 MB
Virtual Memory: Available: 33 931 MB
Virtual Memory: In Use:    8 767 MB
Page File Location(s):     C:\pagefile.sys
Domain:                    WORKGROUP
Logon Server:              \\TOUCHY
Hotfix(s):                 5 Hotfix(s) Installed.
                           [01]: KB5022497
                           [02]: KB5012170
                           [03]: KB5023706
                           [04]: KB5022610
                           [05]: KB5022948
Network Card(s):           3 NIC(s) Installed.
                           [01]: Intel(R) Wi-Fi 6 AX201 160MHz
                                 Connection Name: WiFi
                                 DHCP Enabled:    Yes
                                 DHCP Server:     192.168.216.216
                                 IP address(es)
                                 [01]: 192.168.216.21
                                 [02]: fe80::cd3a:6774:9e8f:b8e8
                                 [03]: 2a02:2121:620:9ff3:65cb:587:8f3c:6e4
                                 [04]: 2a02:2121:620:9ff3:436b:43fd:9962:ed94
                           [02]: Intel(R) Ethernet Connection (13) I219-V
                                 Connection Name: Ethernet
                                 Status:          Media disconnected
                           [03]: Bluetooth Device (Personal Area Network)
                                 Connection Name: Bluetooth Network Connection
                                 Status:          Media disconnected
Hyper-V Requirements:      VM Monitor Mode Extensions: Yes
                           Virtualization Enabled In Firmware: Yes
                           Second Level Address Translation: Yes
                           Data Execution Prevention Available: Yes
dubidubno commented 1 year ago

Just to add that I'm not on a domain and using a local windows account with admin privilege.

Ro4cHii commented 1 year ago

For anyone using a Synology Diskstation and receiving error 67: Make sure to enable SFTP via DSM. This made it work for me! :)

Mqxx commented 1 year ago

I have the same issue... Any update on this? I can only use the key authentication.

balwierz commented 11 months ago

Same for me

JFLarvoire commented 10 months ago

I had the same problem this week, and posted a detailed description of how I fixed it there. Summary: Try using the remote system IP address instead of its domain name.

Mqxx commented 10 months ago

Try using the remote system IP address instead of its domain name.

This does only work if you have a static IP...

JFLarvoire commented 10 months ago

You can easily work around that by first resolving the DNS name, then passing the resolved IP address to net use. That's actually what I had to do in my case, as I'm connecting to a remote server in my parent's home, and their IP address is not guarantied to be fixed. ("+S.bat" connects, and "-S.bat" disconnects :-)

Mqxx commented 10 months ago

You can easily work around that by first resolving the DNS name, then passing the resolved IP address to net use.

Yea I guess that will work.

rcmoody commented 6 months ago

I have the same issue while connecting to a local server. I am able to connect if I use the ssh-win executable directly however.