winfsp / sshfs-win

SSHFS For Windows
https://winfsp.dev
Other
4.91k stars 252 forks source link

Cannot re-connect with sshfs a few days after a successful connection #233

Open rpringadi opened 3 years ago

rpringadi commented 3 years ago

Bug Report

I managed to mapped and connect to a remote server using a combination of billziss-gh/sshfs-win and winfsp. I can browse, create files, edit files. But a few days after, I tried to reconnect the same connection but the connection is refused.

How to Reproduce

Wait for a few days, try to reconnect, connection failed. I tried going to Control Panel > Credential Manager > delete all entries related to sshfs. Still failed.

Behaviors

Authentication when "Map Network Drive" seems to be rejected. I opened Cygwin, ssh directly to my server, ensuring the same username and password, works.

Environment

rpringadi commented 3 years ago

WinFspMapNetworkDrive WinFspErrorMsg

The redacted (red-inked) connection is a format of username@ipnumber.

rpringadi commented 3 years ago

From a dos console. Is there a way to see WinFSP's log ?

C:\Users\rpringadi>net use X: \sshfs\username@ipnumber....\home\Shares The password is invalid for \sshfs\username@ipnumber....\home\Shares.

Enter the user name for 'sshfs': username Enter the password for sshfs: System error 67 has occurred.

The network name cannot be found.

rpringadi commented 3 years ago

I think there is a discussion on the github winfsp saying some windows update breaks the functionality.

On my Windows Downloads directory: winfsp-1.7.20172.msi is downloaded at 8/8/2020 sshfs-win-3.5.20024-x64.msi is downloaded at 8/8/2020 This implies the date of my installation.

I re-installed my winfsp-1.7.20172.msi then the installer asked for a Windows restart. After the restart it works fine. Note that I only reinstalled the winfsp-1.7.20172.msi, not the sshfs ones. I tried to restart my Windows PC one more time, it's still fine.

On the side note, all of these updates have the potential to break prior winfsp installation: Update breaks sshfs

bkarlson commented 3 years ago

Seems to be related to https://github.com/billziss-gh/sshfs-win/issues/155. Please post there to attract attention to this seemingly common problem.