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

feat(agent): support Windows OpenSSH #1868

Closed
wants to merge 1 commit into from

Conversation

sengels
Copy link

@sengels sengels commented Jun 17, 2021

Addresses #1509

@Daviid-P
Copy link

Will this ever be merged?
Is Windows OpenSSH ssh-agent support planned?

@sengels
Copy link
Author

sengels commented Feb 2, 2022

I don't know, I've just been bitten by that again.

@bitprophet
Copy link
Member

bitprophet commented Feb 4, 2022

Thanks! Seems ok at a very brief glance, but it at least needs a changelog entry and ideally some basic testing, if plausible (I acknowledge that testing this kind of lower level OS stuff can get tricky, but maybe see what can be easily mocked?)

Can you also speak to #1837 (which looks like this was based on)?

I'm also curious if you've been able to test this on a system that supports both the newer native SSH and WinPageant? I'm thinking of users who might be using the latter for a long time (but are on a modern enough Windows that the new SSH is around) and might end up bitten by a sudden switch in behavior.

@bitprophet bitprophet added this to the Next feature release milestone Feb 4, 2022
@sengels
Copy link
Author

sengels commented Feb 4, 2022

Yes, this commit is just a slight improvement over #1837 in that it doesn't use the windows specific api.

I can easily test this with both openssh and Pageant; I can try to come up with a simple test case, but I have no idea how to do mock testing in that regard?

wrt. changelog, can you let me know where I can put a suitable line?

…miko#1509)

Since quite a while there exists a native openssh port for windows.
If the Putty pageant is not present, try to use the native port's agent
instead.
@sengels
Copy link
Author

sengels commented Feb 6, 2022

@bitprophet I fixed the lint issues, and added a versionchanged line.
I reworked the order in which the native openssh is used, so now this is backwards compatible in that putty's pageant is tried first and only if that cannot be found, the native version is used.
I see one test error in 3.6 but I have no idea why this should be the case. Maybe you have more insight?

@bitprophet
Copy link
Member

Thank you! and if that is the errors I've hit, it's some ephemeral problem on CircleCI that can, sadly, be ignored. I'll look into it.

@bitprophet
Copy link
Member

This'll go out in 2.10, hopefully today 🤞🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants