Repository navigation
SHA2 with ssh agent - #1925
Closed
Sandarr95 wants to merge 8 commits into
Closed
SHA2 with ssh agent#1925Sandarr95 wants to merge 8 commits into
Sandarr95 wants to merge 8 commits into
Conversation
Sandarr95
commented
Nov 8, 2021
| msg.add_string(self.blob) | ||
| msg.add_string(data) | ||
| msg.add_int(0) | ||
| msg.add_int(SHA_MAP[self.name]) |
Author
There was a problem hiding this comment.
https://tools.ietf.org/id/draft-miller-ssh-agent-01.html#sigflagnum
choose sha strategy based on name; sha1 = 0, sha256 = 2, sha512 = 4, bit 1 is reserved
Sandarr95
commented
Nov 8, 2021
Comment on lines
+409
to
+410
| if(self.name in rsa_prefs): | ||
| self.name = rsa_prefs[0] |
Author
There was a problem hiding this comment.
Not sure how I should negotiate the key. This is (I think) only taking the clients' preference into consideration, and will fail if the client prefers SHA2 and the server does not support SHA2.
Sandarr95
marked this pull request as ready for review
November 9, 2021 15:14
Member
|
See #1643 (though I ended up writing my own branch for this). Releasing soon. Thanks! |
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.
I've been trying to get an ssh connection working with this project to my server. At first I thought just the rsa-sha2 algorithms were missing. Trying out #1643 still did not work as I was using an ssh-agent.
This PR will dynamically assign the SHA algorithm as specified in preferred keys. It won't effectively change anything until the
_preferred_keysinclude those rsa-sha2 algorithms (defined in #1643).While opening this PR I also noticed #1644 which seems to be a partial implementation that just changes the flag, might be good to consider it for ongoing refinement.
This is the first time I'm doing python library programming and contributing to a python project. I know very little about pip, running tests and probably a bunch of other stuff, so don't hesitate to give me feedback :).