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
If you're connecting as a client, which SSH server are you connecting to?
No response
If you're using paramiko as part of another tool, which tool/version?
No response
Expected/desired behavior
RSAKey.sign_ssh_data successfully signed SSH data.
Actual behavior
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ultraplanet/.local/lib/python3.10/site-packages/paramiko/rsakey.py", line 142, in sign_ssh_data
algorithm=self.HASHES[algorithm](),
KeyError: 'ssh-rsa'
Thanks for the report! This will be fixed in 5.0.1. Defaults to rsa-sha2-512 instead of 256, since when a user doesn't have an opinion, it felt best to default to the strongest possible algorithm.
Activity
bitprophet commentedon Oct 10, 2026
Thanks for the report! This will be fixed in 5.0.1. Defaults to
rsa-sha2-512instead of256, since when a user doesn't have an opinion, it felt best to default to the strongest possible algorithm.Fix #2628: update default of RSAKey.sign_ssh_data