Different agent support for SFTP

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
quazi
Junior Member
Junior Member
Posts: 16
Joined: 2021-05-12, 10:05 UTC

Different agent support for SFTP

Post by *quazi »

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
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Different agent support for SFTP

Post by *ghisler(Author) »

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

Code: Select all

hwnd = FindWindowA("Pageant", "Pageant");
Anyone know how to detect that native agent? Where can I download it?
Author of Total Commander
https://www.ghisler.com
quazi
Junior Member
Junior Member
Posts: 16
Joined: 2021-05-12, 10:05 UTC

Re: Different agent support for SFTP

Post by *quazi »

ghisler(Author) wrote: 2021-11-09, 10:14 UTC Where can I download it?
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
Looks like KeePassXC uses WaitNamedPipe to detect if native OpenSSH present.

Code: Select all

m_socketPath = "\\\\.\\pipe\\openssh-ssh-agent";
...
return WaitNamedPipe(m_socketPath.toLatin1().data(), 100);
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Different agent support for SFTP

Post by *ghisler(Author) »

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
Post Reply