Skip to content

Add option to skip host key verification - #2345

Open
pghmcfc wants to merge 3 commits into
paramiko:mainfrom
pghmcfc:skip-host-key-verification
Open

pghmcfc wants to merge 3 commits into
paramiko:mainfrom
pghmcfc:skip-host-key-verification

Conversation

@pghmcfc

@pghmcfc pghmcfc commented Jan 11, 2024 •

Copy link
Copy Markdown
Contributor

Skipping host key verification might be useful in very rare cases where it is not possible to verify the target's key, for example if it uses a legacy signature algorithm that is no longer supported by the client, e.g. this fixes #2259.

@pghmcfc
pghmcfc force-pushed the skip-host-key-verification branch 2 times, most recently from 2ae1be2 to f1352ac Compare January 11, 2024 13:46
Adds _skip_host_key_verification attribute to Transport and
provides a set_skip_host_key_verification method to set or clear
it (default: `False`).

Adds skip_host_key_verification parameter to SSHClient.connect
(default: `False`), which is passed directly to the transport.

Skipping host key verification might be useful in very rare cases
where it is not possible to verify the target's key, for example if
it uses a legacy signature algorithm that is no longer supported by
the client, e.g. in paramiko#2259.
@pghmcfc
pghmcfc force-pushed the skip-host-key-verification branch from f1352ac to f3a10da Compare June 25, 2026 15:55
@pghmcfc
pghmcfc force-pushed the skip-host-key-verification branch from f3a10da to ead3a1b Compare June 25, 2026 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

error: "sha1 is not supported by this backend for RSA signing"

2 participants