-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Identity keys are always checked, even if look_for_keys=False. #2267
Comments
If this adds any value to the resolution of the issue, I've tried to reproduce on Linux with following versions:
with no luck. Can you specify how you created the "invalid" key? |
@godfath3r The key in question is a 8192 bit RSA key generated via |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When trying to create a Connection, let's say
the exception
is raised at "cryptography\hazmat\primitives\asymmetric\dsa.py:27" on my machine because I have a 8192 bit identity file lying around. Note that I am in no way trying to use the key here. I tried deactivating key search via:
but that did not change anything. On closer inspection, the "offending" key (it is a valid, working key) is added to the kwargs dict from the
Connection.resolve_connect_kwargs
function in theConnection
constructor. In the resolved connect keyword args dict, an entry"key_filename"
always appears containing a list of paths to my identity keys.Should this function respect
look_for_keys=False
i.e. not add the kes?Environment
On windows 11 (and windows 10): Python 3.10.6, fabric==3.0.1 with paramiko==3.1.0 using Windows' default ssh (OpenSSH)
The text was updated successfully, but these errors were encountered: