winfsp / sshfs-win

SSHFS For Windows
https://winfsp.dev
Other
5.17k stars 262 forks source link

Unable to connect using hardened windows server 2012R2 #325

Open warichnict opened 2 years ago

warichnict commented 2 years ago

Hi,

i have an online server, that i have hardened by disabling things like NETBIOS/SMB/network detection and so on because its connected to the internet directly.

Problem is i am able to use sshfs-win to connect but i need to have a connection on SYSTEM context for my backup program (veeam) to work, therefore i need to use the UNC stuff and i am not able to work it out

image

getting allays this when entering everyhting correctly.

how to make it work without exposing smb to the world?

thanks for any help in advance

warichnict commented 2 years ago

btw the same problem from cmd but with different error code:

 /cygdrive/c
$ net use v \\sshfs\sshfs@***\home\sshfs\***
System error 67 has occurred.

The network name cannot be found.
warichnict commented 2 years ago

i tried further stuff but got this strange error message:

 /cygdrive/c/Program Files/SSHFS-Win/bin
$ ./sshfs-win.exe
      0 [main] sshfs-win (7452) C:\Program Files\SSHFS-Win\bin\sshfs-win.exe: *** fatal error - cygheap base mismatch detected - 0x180357408/0x180347408.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version.  The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution.  Rebooting is also suggested if you
are unable to find another cygwin DLL.

 /cygdrive/c/Program Files/SSHFS-Win/bin
$ ./sshfs-win.exe -h
      0 [main] sshfs-win (3880) C:\Program Files\SSHFS-Win\bin\sshfs-win.exe: *** fatal error - cygheap base mismatch detected - 0x180357408/0x180347408.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version.  The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution.  Rebooting is also suggested if you
are unable to find another cygwin DLL.

 /cygdrive/c/Program Files/SSHFS-Win/bin
$

(same with sshfs.exe )

av930 commented 2 years ago

you cannot call sshfs-win from cygwin, call sshfs directly. if it fails for cygwin imcompatible version, you should build sshfs on cygwin. please read wiki.