Skip to content
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

HWND not found #23

Closed
GeorgHoffmeyer opened this issue Mar 25, 2019 · 3 comments
Closed

HWND not found #23

GeorgHoffmeyer opened this issue Mar 25, 2019 · 3 comments

Comments

@GeorgHoffmeyer
Copy link

Hi,
when I try to use ssh on wsl I get the following error:

WSL AF_UNIX socket listening on c:\Tools\wsl-ssh-pageant\sock\ssh-agent.sock
WslSSHPageant.PageantException: HWND not found
   at WslSSHPageant.PageantHandler.Query(ArraySegment`1 buf) in C:\projects\wsl-ssh-pageant\PageantHandler.cs:line 115
   at WslSSHPageant.SSHAgentClient.<ServiceSocket>d__7.MoveNext() in C:\projects\wsl-ssh-pageant\SSHAgentClient.cs:line 131
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at WslSSHPageant.SSHAgentClient.<WorkSocket>d__6.MoveNext() in C:\projects\wsl-ssh-pageant\SSHAgentClient.cs:line 57
^C
c:\Tools\wsl-ssh-pageant>wsl-ssh-pageant.exe --wsl c:\Tools\wsl-ssh-pageant\sock\ssh-agent.sock
WSL AF_UNIX socket listening on c:\Tools\wsl-ssh-pageant\sock\ssh-agent.sock
WslSSHPageant.PageantException: HWND not found
   at WslSSHPageant.PageantHandler.Query(ArraySegment`1 buf) in C:\projects\wsl-ssh-pageant\PageantHandler.cs:line 115
   at WslSSHPageant.SSHAgentClient.<ServiceSocket>d__7.MoveNext() in C:\projects\wsl-ssh-pageant\SSHAgentClient.cs:line 131
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at WslSSHPageant.SSHAgentClient.<WorkSocket>d__6.MoveNext() in C:\projects\wsl-ssh-pageant\SSHAgentClient.cs:line 57
@benpye
Copy link
Owner

benpye commented Mar 26, 2019

Hey,

Looks like you're using the older C# version, but it should still work.

Few questions:

  1. What are you using to provide Pageant? (Pageant, gpg4win, etc)
  2. What user are you running Pageant as, what user are you running wsl-ssh-ageant as?
  3. Does PuTTy work?

@benpye
Copy link
Owner

benpye commented May 13, 2019

@GeorgHoffmeyer I don't suppose you've had a chance to look at this?

@benpye
Copy link
Owner

benpye commented Apr 8, 2020

I'm gonna close this out - @GeorgHoffmeyer if you hit this again please reopen!

@benpye benpye closed this as completed Apr 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants