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

SSH Key of type ED25519-SK work with pyinfra==3.1 & paramiko==3.1 but not with newer versions of paramiko (3.2+) #1242

Open
julienfr112 opened this issue Nov 20, 2024 · 1 comment

Comments

@julienfr112
Copy link

julienfr112 commented Nov 20, 2024

Describe the bug

PyInfra cannot connect to host with ED25519-SK key and paramiko on 3.2+ version (works with 3.1)
ED25519-SK is the ssh key type use with a yubikey FA

To Reproduce

Expected behavior

pyinfra should connect to host but give this error:

` File "/home/julien/.local/lib/python3.11/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/julien/.local/lib/python3.11/site-packages/paramiko/auth_handler.py", line 218, in _get_key_type_and_bits
if key.public_blob:
^^^^^^^^^^^^^^^
File "/home/julien/.local/lib/python3.11/site-packages/paramiko/agent.py", line 476, in getattr
raise AttributeError(name)
AttributeError: public_blob
2024-11-20T09:21:46Z <Greenlet at 0x7362bfc313a0: <bound method Host.connect of Host(X.X.X.X)>> failed with AttributeError

--> Disconnecting from hosts...
--> An internal exception occurred:
`

@julienfr112 julienfr112 changed the title SSH Key of type ED25519-SK work with pyinfra==3.1 & paramiko==3.2 but not with newer versions of paramiko (3.3+) SSH Key of type ED25519-SK work with pyinfra==3.1 & paramiko==3.1 but not with newer versions of paramiko (3.2+) Nov 20, 2024
@simonhammes
Copy link
Contributor

This seems to be a bug in Paramiko itself: paramiko/paramiko#2462

There are PRs for this issue: paramiko/paramiko#2465 / paramiko/paramiko#2475

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