-
Notifications
You must be signed in to change notification settings - Fork 67
new wsl2-ssh-pageant.exe instance is create for every gpg communication #38
Comments
That is actually intended, each connection attempt opens a new binary. The agent itself is not long lived. The question in this case is: why is the connection held open. The part about gpg is that it's not the main purpose of wsl2-ssh-pageant and was more or less hacked into it. As I'm not using it as my daily driver there needs to be someone who is willing to investigate that issue. Maybe I will find some time to have a look into it myself. |
Even if I kill the |
I must admit that I never noticed that the wsl2-ssh-pageant proccesses are lacked behind. But I can indeed confirm it's happening for me too. I would assume there ist something in the teardown process which results in this behavior. I've tried to look into it but did not find any obvious reasons. I totally understand that this is not the expected behavior but on the other hand on most modern computers this shouldn't make a huge difference. If the computer is rebooted frequently. Nevertheless I will mark this as an issue which needs to be addressed, but I have no concrete timeframe. |
Well, in my case, my desktop is usually on throughout the day and went to hibernation during the night. I rarely restart or shut down my computer unless I have to. While reading the code, I noticed you opened a connection here. But I wonder if you need to manually close it. I don't have much knowledge of go. |
I tried in ssh mode. I observed that the |
@davidshen84 I download |
Thanks, I just tested the one from the github artifactory and I can reproduce the issue. However, the one compiled on my local does not have this issue. I think the real problem the the Thanks |
Please give it another try. https://github.com/davidshen84/wsl2-ssh-pageant/actions/runs/2063498454 |
@davidshen84 It's works. Thanks |
@davidshen84 I've tried this on my system as well, and it appears to resolve the issue. The added Close handler doesn't seem to be called with our without the windows gui option. One note, might want to also remove the compile option from the Makefile. Much appreciated! |
Describe the bug
This is how I start the process in WSL 2:
To Reproduce
Steps to reproduce the behavior:
socat
process like abovegpg --card-status
3 timeswsl2-ssh-pageant.exe
process in Windows Task ManagerExpected behavior
No
wsl2-ssh-pageant.exe
process should be found in the Task ManagerScreenshots
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: