-
Notifications
You must be signed in to change notification settings - Fork 269
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
SSHFS with publickey on Windows 11 is not working properly #387
Comments
Hi there, I was not able to debug like you, I tried however:
I also noticed, that a alias like this, with the standard-key-name, also doesn't work. So maybe the error lies more at reading the config file?
But have no solution in mind. Maybe a bug. I think I wait for a next version. |
@TobiVanHelsinki This works for me: ❯ sshfs-win.exe svc \sshfs.k\hostalias R:
Warning: Permanently added '[redacted]' (ECDSA) to the list of known hosts.
The service sshfs has been started. With
What doesn't work for me is the ❯ net use R: \\sshfs.k\hostalias
System error 67 has occurred.
The network name cannot be found. This is all on Windows 11, with SSHFS-Win 3.5.20357 and WinFsp 2.0.23075. |
Same problem on win11. Looks like HOST alias doesn't work and could not read key files in ssh/config |
Same problem as in the comment of john-hen, but I am on Windows 10 22H2 build 19045.3448 with SSHFS-Win 3.5.20357 and WinFsp 2.0.23075. A custom private key name works when using the |
I also ran into this today, and probably spent an hour or so trying to figure what went wrong. Sharing my findings here in case it helps someone else. Like some other people here mentioned (and in another related issue) the problem comes from using SSH keys that aren't in the "standard" format. i.e. they're not named This isn't usually a problem, I also tried using The solution: rename I'm curious where the problem is, if it's |
Same issue here. Any updates of a fix? |
Do not use Related: #74 |
Hey! Thanks for your comment, I tried your solution and it seemed to work very well! |
This issue is a duplicate of #74 where I posted some good news in #74 (comment) |
Hello! I have a fresh install of Windows 11 with the latest version of SSHFS-Win and WinFsp.
I used the
ssh-keygen
command to generate a private and public key.This was previously working on Windows 10, so... no problems should come from my home nas.
I both used the command line
sshfs
and the windows interface to add a network drive, both didn't work.Here is my connection line
\\sshfs.k\sftp-storage\sftp
on my Windows 11 I have this config file located at
~/.ssh/config
for this server settingsNow that I have explained my setup, here is what I've tried and observed.
First I have to say that i'm not a beginner and I have a pretty good knowledge of software development.
By using the debug argument on the SSHFS I read every line and got a sense of what was going on and it seems to be internal.
This was the error that happened at the end,
debug3: read - ERROR from cb :87, io: ...
The Authentication was successfull and went through but upon some more communication with the server the client can't seem to go past this error.
Hard to say what's the problem right? But when I changed my private key to
id_rsa
as the exact name for the file it worked!Halfway though, because I can't have multiple server with this setup. I need multiple network drives to be connected for my use.
As a temporary fix, I could make a script that changes names of my private keys and setup the sshfs afterwards and each time I restart my computer it runs the scripts but it's kinda sad ...
So now I know it's because the private key isn't or cannot be read at some point in the program, or the path itself. Because my keys are listed in the
~/.ssh/config
file.Since it's a matter of files that are in my computer, then there must be a problem between my computer and the program itself. Since the server works properly when I have the private key
id_rsa
as its name.Or maybe something else? I'm very lost and I can't seem to be able to run SSHFS properly
Also, I know it works with a password, but I am not allowed to use a password to connect to my servers, I have to use a private/public key. It's just not getting my private keys properly and I don't know why...
Any ideas ?
The text was updated successfully, but these errors were encountered: