-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
work in ssh but not work in sshfs #74
Comments
I think it is better to run |
I try C:\Program Files\SSHFS-Win\bin>sshfs [email protected]:/home/bernardo j: C:\Program Files\SSHFS-Win\bin>mkdi \joomla C:\Program Files\SSHFS-Win\bin>mkdir \joomla C:\Program Files\SSHFS-Win\bin>sshfs [email protected]:/home/bernardo c:\joomla C:\Program Files\SSHFS-Win\bin>sshfs [email protected]:/home/bernardo c:\joomla2 In neither case did it work Another attempt was made to but when I try to access the symbolic link via windows drive. |
Just to pitch in, that I have the same issue. When running sshfs from command line, I got the "Connection reset by peer" error eventhough ssh (from the same exact directory with the same parameter) worked just fine. |
I have the same issue. When connecting via FileZilla or Microsoft's OpenSSH client, I am able to connect to the server without issue. From my sshfs-win directory, running ssh.exe works correctly, with...
Attempting to run sshfs....
The server is running Ubuntu 18.04, with OpenSSH server installed, and port 22 opened for incoming connections via the firewall. Any ideas why this might be happening? |
If you run it in debug mode you'll see it doesn't fine ssh.exe. Add 'C:\Program Files\SSHFS-Win\bin' to your PATH and it'll work, |
I am having a similar issue. Was able to map my E: drive to an Ubuntu server, but when I restarted my computer recently it could not re-connect to the drive (note, I have restarted my computer before without any issue). Any attempt to re-map the drive has been unsuccessful. Output from WinFsp diag.bat (I've seen other people need this, i don't know if it'll help) A couple notes:
Any help would be much appreciated! |
Tried versions 2.7, 3.2, and 3.5. These are logs from 2.7.
ssh succeeds though.
If you compare the two, what seems to be failing is sftp. Server log at that point:
Here's sshfs with
What is 3.5 produces: |
I have beta version (SSHFS 3.5.2 and FUSE 3.2), and I get same problem:
|
Same problem with 2.7.17334. sftp works fine though
|
+1 |
same problem "connection reset by peer" |
Same problem Version used WinFsp 2019.3 B4 and SSHFS-Win 3.5 BETA Not sure if this helps in diagnosing the issue but sshfs-win cmd -o loglevel=debug3 -d -p 5555 john@localhost:/../.. Z:
SSHFS version 3.5.2
executing <ssh> <-x> <-a> <-oClearAllForwardings=yes> <-ologlevel=debug3> <-oPort=5555> <-2> <john@localhost> <-s> <sftp>
Bad owner or permissions on /cygdrive/c/Users/john/.ssh/config
read: Connection reset by peer |
@couilllard45682 Is right I believe, I had this very same issue - for whatever reason it doesn't matter if you have the path set in the environment variable or not, the path NEEDS to be set inside the command prompt before running the command. For me, running just
gives me
but running
allows me to connect successfully |
Thanks for the follow up @Ice-IX but i'm getting the same error message after explicitly setting the path in the prompt. |
Same problem here, and setting the path solved it! |
See #95 (comment) for a solution to this issue which does not require any PATH tinkering, and follow that issue for maybe a fix to |
Works like a charm, thank you. Weird enough, I tried adding SSHFS-Win folder path to the PATH variable of both my user and the whole system (to avoid entering it each time), but it doesn't work. Now, it would be great if SSHFS-Win could be mapped to a drive letter, like Z:. Does anyone know how to do it? Thank you! EDIT: Typo |
This is not weird at all, because the fix that you applied does not work by only adding SSHFS-Win to PATH, but primarily by removing everything else from it. See #95 (comment) for a better solution. You might also try adding SSHFS-Win to the beginning of your PATH (instead of the end), but that will break other things on your system. I can only recommend you read #95 (comment). Edit: oh yes, and #95 (comment) of course. |
I was faced with the same error. The cause of this may be different from what is discussed in this issue, but I got the same error message. debug3: read - ERROR from cb :87 So I note it for reference. # On Windows
$ where ssh-keygen
C:\Windows\System32\OpenSSH\ssh-keygen.exe
$ ssh -V
OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2 # On Linux
$ ssh -V
OpenSSH_8.4p1 Debian-6, OpenSSL 1.1.1l 24 Aug 2021 |
The issue was solved for me after deleting c:\Users[user].ssh\config (maybe an incompatibility with other installed versions of ssh) |
Windows explorer map network drive X: with folder of Nor does Without the .kr option am prompted Temporary workaround: Start-Process -NoNewWindow -filepath "C:\Program Files\SSHFS-Win\bin\sshfs-win.exe" -ArgumentList "svc \sshfs.kr\[email protected]!2222\share\path X:" Of course I have edited
Not using the |
Hello everyone There are two ssh.exe available, one bundled with sshfs-win in C:\Program Files\SSFS-Win\bin and the other from Microsoft in C:\Program Files\OpenSSH. The former works with sshfs-win but cannot use Windows built-in ssh-agent, while the later is incompatible wuth sshfs-win and leads to the now infamous "debug3: read - ERROR from cb :87" error. If PATH has C:\Program Files\OpenSSH before C:\Program Files\SSFS-Win\bin , ssh works but sshfs-win does not. A first workaround had been documented earlier in this issue: prepend C:\Program Files\SSFS-Win\bin to PATH so that the compatible ssh.exe is used. But that does not let you use Windows built-in ssh-agent. You would need a fix to Microsoft ssh.exe so that it works with sshfs-win. I submitted that fix here: |
In the image you can see an ssh terminal showing a ls -lah from a folder that can not be accessed via ssshfs
Windows 10 1809
sshfs-win-2.7.17334-x64.msi
winfsp-1.3.18160.msi
note my home folder work fine
The text was updated successfully, but these errors were encountered: