Can't map drive inside Explorer or with NET USE

Open
#207 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
c

Research direction

Start by reproducing the failure through Explorer and NET USE, then compare those results with the working direct sshfs command and SSHFS-Win Manager path. Trace where the NET USE request is handled and determine why authentication or access differs; done means the cause is identified and the mapped-drive workflow works or the limitation is clearly documented.

Written by the indexing model from the issue text.

Description

I'm trying to map a drive to my NAS using SSHFS-Win. From Explorer or CMD I can't get it to work and it throws the following error:

PS C:\Program Files\SSHFS-Win\bin> net use X: \\sshfs\admin@192.168.1.4\Data
The password is invalid for \\sshfs\admin@192.168.1.4\Data.

Enter the user name for 'sshfs': admin
Enter the password for sshfs:
System error 5 has occurred.

Access is denied.

But it works pretty much fine with:

sshfs -d -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o Port=22 -o idmap=admin -o cache_timeout=1 -o FileInfoTimeout=-1 -o DirInfoTimeout=1000 admin@192.168.1.4:/Data M:

And it also works fine using SSHFS-Win Manager.

Any idea on where to start debugging?

Thank you!

Dominant language
C
Stars
6.4k
Forks
315
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from winfsp/sshfs-win

All issues in winfsp/sshfs-win

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.