You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEAT] - Support for ecdsa-sk and ed25519-sk #2299
When such a key is present in the SSH agent, the client connection fails with (traceback from Ansible, but Fabric fails similarly)
Traceback (most recent call last):
File "/home/krab/.virtualenvs/ansible/lib/python3.10/site-packages/paramiko/transport.py", line 2185, in run
handler(m)
File "/home/krab/.virtualenvs/ansible/lib/python3.10/site-packages/paramiko/auth_handler.py", line 394, in _parse_service_accept
key_type, bits = self._get_key_type_and_bits(self.private_key)
File "/home/krab/.virtualenvs/ansible/lib/python3.10/site-packages/paramiko/auth_handler.py", line 218, in _get_key_type_and_bits
if key.public_blob:
File "/home/krab/.virtualenvs/ansible/lib/python3.10/site-packages/paramiko/agent.py", line 476, in __getattr__
raise AttributeError(name)
AttributeError: public_blob
It would be nice if this type of keys would be supported and Paramiko could be used instead of the OpenSSH client.
Anything else?
No response
Reacted by Aleksei Stepanov, Jakub Man, Daniel Kröger, Matthias Dötsch, Victor J. Hansen, Luis Helder, Dmitry Strokov, xima-csi and Hyacinthe Cartiaux
Activity
jakubman1 commentedon Nov 27, 2023
Hi,
is there any progress on this issue?
Thanks.
strokovok commentedon Jul 29, 2024
Found some dirty workaround
You will have to load your key from agent like this:
And then do this:
Then connect using this key:
CC @crabhi @jakubman1 @kofrezo
jakubman1 commentedon Jul 30, 2024
Thanks for the workaround, but I actually needed key verification, as I am using paramiko just to verify signatures.
I managed to solve my issue by implementing ed25519-sk key verification myself, as that is the only type of -sk key I need to verify.
If anyone is interested in the ed25519-sk key verification, here is my implementation: https://gist.github.com/jakubman1/ea54327166e43bafdbbd4d15a514f848
liulk commentedon Jan 30, 2026
This one weird trick worked for me:
When connecting, use agent as usual. Touch works as an agent normally would. Tested with a
[email protected]on YubiKey 5.