Skip to content

Fix issue #23, port of PR24 - #478

Open
jansegre wants to merge 4 commits into
paramiko:mainfrom
jansegre:master
Open

jansegre wants to merge 4 commits into
paramiko:mainfrom
jansegre:master

Conversation

@jansegre

Copy link
Copy Markdown

Paramiko was sending multiple MSG_SERVICE_REQUEST, though openssh behaviour is to not resend the service request after it was accepted.

Though this may not be a problem for some implementations it is for the Mikrotik ROSSSH, which is the case I'm trying to fix. More details on #23.

Note: the diff is a bit weird because I de-indented a portion of the code so it could live in a separate function, which by the way could have its name reviewed.

Note2: I know, I know, I haven't made any test. Although I believe coverage shouldn't be affected I little time right now and just needed the issue fixed. If tests are really required please ask again that I'll try to take some time to make it.

@bitprophet

Copy link
Copy Markdown
Member

Thanks! Tossing this into the "oh god keys are horrible" bucket and will examine it when I sit down and unravel all that junk (it is high priority). Also thanks for linking it to other apparently-related tickets, appreciated :)

@ploxiln

ploxiln commented Jun 12, 2017

Copy link
Copy Markdown
Contributor

also related: #165

Rarylson Freitas and others added 2 commits February 6, 2018 17:18
While 8d95a4 fixes paramiko#23 for the `auth_publickey` method, it doesn't
fix the bug when multiple auth methods are used one after another.

Also moving the 'userauth is OK' log message to a proper location.
Using the same `AuthHandler` during the entire auth process
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.

4 participants