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

If both Putty and OpenSSH agents are running, only the Putty agent is used #633

Open
MarcelInTO opened this issue Oct 15, 2021 · 1 comment

Comments

@MarcelInTO
Copy link

On Windows 10, I have my system configured to use the OpenSSH agent that comes with windows and libssh2 works as expected. At some point I installed an application that started up a Putty Agent which was not configured with any keys. At that point, the applications that rely on libssh2 stopped working.

Looking through the code, it appears that if a Putty Agent is found, libssh2 will not check against a running OpenSSH agent.

To Reproduce

  1. Configure Windows system to work with an openssh ssh-agent and configure that agent with a key
  2. Test successfully against a server using that key
  3. Start a Putty agent.
  4. Test again that same server and it will fail.

Expected behavior
If both Putty and OpenSSH agents are running, both are checked for keys so that neither takes priority over the other.

@stale
Copy link

stale bot commented Apr 16, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 16, 2022
@willco007 willco007 removed the stale label Apr 28, 2022
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