Please support native agent for SSH keys. It is used by OpenSSH (even by version from MS Store) and KeePassXC can export keys to it automatically on first auth.
PuttyAgeant isn't necessary anymore
Different agent support for SFTP
Moderators: white, Hacker, petermad, Stefan2
- ghisler(Author)
- Site Admin
- Posts: 48083
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Different agent support for SFTP
I'm using libssh2, and it apparently looks for a window with title starting with "Pageant" and class name "Pageant":
https://github.com/libssh2/libssh2/blob/master/src/agent.c
Anyone know how to detect that native agent? Where can I download it?
https://github.com/libssh2/libssh2/blob/master/src/agent.c
Code: Select all
hwnd = FindWindowA("Pageant", "Pageant");
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Different agent support for SFTP
You can install it from powershell. Please check the links at
https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_keymanagement
Code: Select all
PS> Get-Service ssh-agent
Status Name DisplayName
------ ---- -----------
Running ssh-agent OpenSSH Authentication Agent
Code: Select all
m_socketPath = "\\\\.\\pipe\\openssh-ssh-agent";
...
return WaitNamedPipe(m_socketPath.toLatin1().data(), 100);
- ghisler(Author)
- Site Admin
- Posts: 48083
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Different agent support for SFTP
This does not seem to create any hidden window at all, so I don't think it's possible to communicate with it from libssh2.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com