sshfs-win
sshfs-win copied to clipboard
Mount to non-root path not supported?
If I choose to mount to a drive letter directly, such as the below, I have no issue.
net.exe use b: \\sshfs\[email protected]
But, if I choose to mount directly to a second level folder, I receive error 67. I get this if the destination folder already exists or if it has not been created yet.
Below example will give error:
net.exe use b:\abc123 \\sshfs\[email protected]
Any recommendations?
Are you trying to mount a directory named abc123 on [email protected] at B: ? Then the command should be; net.exe use b: \sshfs\[email protected]\abc123\
Are you trying to mount a directory named abc123 on [email protected] at B: ? Then the command should be; net.exe use b: \sshfs[[email protected]](mailto:[email protected])\abc123\
Nope, I'm trying to mount [email protected] to b:\abc123
A couple of issues here:
-
I do not believe that
net use
supports mounting on directories. You must use a (new) drive letter to mount. -
If you use sshfs-win directly then you can mount on directories. However WinFsp does not support mounting over a directory that already exists (as opposed to UNIX-like systems). See this FAQ entry on FUSE mounting: https://github.com/billziss-gh/winfsp/wiki/Frequently-Asked-Questions#fuse
Could you perhaps let me know the syntax for mounting to a directory via the windows command prompt? I only see examples on how to map via SSH.
Thanks
Please see the README: https://github.com/billziss-gh/sshfs-win#advanced-usage