Open
Conversation
added 4 commits
February 27, 2024 08:37
Were removed in 005f75a.
Paramiko 2.9.0 added support for SHA-2 variants of RSA key verification algorithms. See: https://www.paramiko.org/changelog.html#2.9.0 This breaks connections to Debian squeeze hosts which don't support these nor server-sig-algs to help Paramilo make the right choice. Example of a failed connection: ``` DEBUG:paramiko.transport:Finalizing pubkey algorithm for key of type 'ssh-rsa' DEBUG:paramiko.transport:Our pubkey algorithm list: ['rsa-sha2-512', 'rsa-sha2-256', 'ssh-rsa'] DEBUG:paramiko.transport:Server did not send a server-sig-algs list; defaulting to our first preferred algo ('rsa-sha2-512') DEBUG:paramiko.transport:NOTE: you may use the 'disabled_algorithms' SSHClient/Transport init kwarg to disable that or other algorithms if your server does not support them! INFO:paramiko.transport:Authentication (publickey) failed. ``` This can be fixed by setting the following in the job configuration: ``` ssh_disabledalgs: pubkeys: - rsa-sha2-512 - rsa-sha2-256 ``` The connection then succeeds: ``` DEBUG:paramiko.transport:Finalizing pubkey algorithm for key of type 'ssh-rsa' DEBUG:paramiko.transport:Our pubkey algorithm list: ['ssh-rsa'] DEBUG:paramiko.transport:Server did not send a server-sig-algs list; defaulting to our first preferred algo ('ssh-rsa') DEBUG:paramiko.transport:NOTE: you may use the 'disabled_algorithms' SSHClient/Transport init kwarg to disable that or other algorithms if your server does not support them! INFO:paramiko.transport:Authentication (publickey) successful! ```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Running the tests in a Debian bookworm environment revealed some issues.
Fixed by putting a space between
ifand(.Fixed by using multiple lines for the comment.
Fixed by restoring the pytest-cov options in
setup.cfg.Fixed by adding
sshdisabledalgsoption to jobs which is passed toparamiko.SSHClient.connect()as the itsdisabled_algorithmsargument.See also: https://www.paramiko.org/changelog.html#2.9.0