Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
unhashable type: 'Ed25519Key' #993
Hi, after updating to Paramiko 2.2.0 some code that previously worked is now broken. I have minimized the reproduction code. Of course, I might have overly minimized it (removed the actual SSH key) because it can't work as is.
import paramiko ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh.load_system_host_keys() ssh.connect('127.0.0.1')
known_hosts (fake redacted hash):
In older versions this code produces the following error:
That sounds like the most likely explanation, yup; beforehand, I believe the known_hosts parsing would simply have skipped the ed25519 keys entirely (thus getting to your apparent other key for the same host, of a different type like RSA); now it's able to create