masahide/OmniSSHAgent

Keepassxc over pageant_shm integration doesn't seem to work

wfthkttn opened this issue · 7 comments

Getting 'Agent protocol error' in Keepassxc while trying to do so.
I lack the understanding of how it works to locate where the error occurs, or it's not working just for me since something else are broken/misconfigured.

Steps to reproduce:

Run OmniSSHAgent with default config.
Start KeepassXC with "Use Pageant" selected, Click "OK".
Get "Agent protocol error." message whenever you try to add keys / open up SSH Agent config.

// OpenSSH works just fine tho

I will also check the operation of keeppassxc.
Please wait a moment.

I got the same error with the procedure.
The cause is not immediately clear, but we believe there is a protocol incompatibility as per the error.
It may take some time to fix.
Please set "Named pipe agent" instead of "Use Pageant" in the OmniSSHAgent settings and use "OpenSSH" in the KeePassXC SSH agent settings.

The error was due to an incorrect parameter in the API call from the keepassxc side.

In putty pagent, the thread ID is a string of '%08x', but in

keepassxc was using the numeric type as a number without converting it to a hexadecimal string.

According to the documentation, the last argument of CreateFileMapping must be a string type.

Create a keepassxc pullreq...

keepassxreboot/keepassxc#8619
I have confirmed that this pull request works fine without Agent protocol error.

Merged by keepassxc

keepasxc 2.7.4, which resolves this issue released.
https://github.com/keepassxreboot/keepassxc/releases/tag/2.7.4