sshfs-win
sshfs-win copied to clipboard
USERPROFILE not read properly leading to 67 Network Name Not found
For some reason sshfs-win.exe thinks my profile home is a network share. It is not USERPROFILE=c:\users[blah]. It's a local folder in the users directory. This is causing my key not be found:
The documentation here (https://github.com/winfsp/sshfs-win/blob/036846d8628543f7ef59782f9eae6c4f8c07645c/README.md?plain=1#L106) is wrong. USERPROFILE is not the location that is first searched:
https://github.com/cygwin/cygwin/blob/8050ef207494e6d227e968cc7e5850153f943320/winsup/doc/ntsec.xml#L1455
<listitem>The user's home directory is set to the same directory which is
used as Windows home directory. This is the
<!--
<literal>homeDrive</literal> AD attribute if set, or the
<literal>homeDirectory</literal> AD attribute if
<literal>homeDrive</literal> is not set.
-->
<literal>homeDirectory</literal> AD attribute.
For SAM accounts, this is equivalent to the "Home folder" setting
in SAM. If both attributes are unset, Cygwin falls back to the
user's local profile directory, typically something along the
lines of <filename>C:\Users\$USERNAME</filename>. Of course, the
Windows directory is converted to POSIX-style by Cygwin.
</listitem>