A sha256 hex is 64 characters long.
What you have looks like base64 encoded text. So, let's go fishing...
What you have looks like base64 encoded text. So, let's go fishing...
>>> import base64 >>> keydata = b"""RLhdtbhVbFXUeqZh6jm0t5ToI6b4IGbac8R2EkP+Ido=""" >>> decoded = base64.b64decode(keydata) >>> decoded b'D\xb8]\xb5\xb8UlU\xd4z\xa6a\xea9\xb4\xb7\x94\xe8#\xa6\xf8 f\xdas\xc4v\x12C\xfe!\xda' >>> hexhash = decoded.hex() >>> hexhash '44b85db5b8556c55d47aa661ea39b4b794e823a6f82066da73c4761243fe21da' >>> len(hexhash) 64So maybe if you use the
bytes.hex()
method (as shown), paramiko can understand what you're passing? ie, try this: key = paramiko.ed25519key.Ed25519Key(data=decodebytes(keydata).hex())