-
-
Notifications
You must be signed in to change notification settings - Fork 786
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
mux_enable_ssh_agent=true disables private key authentication w/ OpenSSH_for_Windows #5817
Comments
How does WSL2 factor into this? It looks like you are running cmd/pwsh and the native ssh binary? With I suspect the problem here is really that that version of ssh doesn't support unix domain sockets: I think the approach I'd like to take for this is to maybe try to intelligently select a default for I do want to note that simply defaulting it to false on Windows isn't something I really want to do, as |
@wez sorry, I initially wrote "WSL2" because that's where I noticed it happening, but then I was able to reproduce it in Windows directly (I figured it's easier to test it like that). I've updated the title and removed the reference to WSL.
It's not set. I think it's expected for Windows to not set the
Would it make sense to enable the SSH agent only if the "SSH_AUTH_SOCK" environment variable is set? |
It's unfortunately not that easy; it is often unset on most systems, when the desktop environment first loads.
When you first launch windows, is the agent started at login/boot, or does it spawn when If the agent is started before wezterm, then it may be possible to try to probe the |
Windows comes with a SSH Authentication Agent service that will create That being said, I'm starting to think that the cleanest solution in this case is to add a warning somewhere (changelog? some FAQ?) about the potential behavior change on Windows due to this new feature. Thank you very much for your work on WezTerm! |
I just bumped into the same error with nightly wezterm build on Windows 10 (this is Server but I think the situation is identical to other consumer editions). With wezterm setting up Probing for existing named pipe without touching
|
BTW I should mention my setup too to show the diversity of possibilities in Windows. Maybe a bit similar to @wez usage of 1Password's agent, but with different software. Agent: a KeePass plugin (KeeAgent), which opens necessary named pipe and Cygwin socket by itself
|
What Operating System(s) are you seeing this problem on?
Windows
Which Wayland compositor or X11 Window manager(s) are you using?
N/A
WezTerm version
Nightly
Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?
Yes, and I updated the version box above to show the version of the nightly that I tried
Describe the bug
When running the Nightly version on Windows 11 and using
ssh.exe
to connect to a remote host using a private key, the connection fails with aPermission denied (publickey)
.The verbose output:
I suspect that the following line shows the actual issue, as it does not appear in the logs of the current release, which does not exhibit this issue:
After some debugging, I believe that the issue was introduced in 4af418f since setting
mux_enable_ssh_agent
tofalse
fixes the issue.To Reproduce
Connect to Github using the Windows SSH client using the Nightly WezTerm build:
Configuration
no config
Expected Behavior
The following output is expected:
Logs
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: