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
put the host in inventory.py (test= "XX.XX.XX.XX" ...)
pyinfra inventory.py exec --limit test -- hostname
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:
`
The text was updated successfully, but these errors were encountered:
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
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:
`
The text was updated successfully, but these errors were encountered: