-
Notifications
You must be signed in to change notification settings - Fork 75
#58 Session.userauth_keyboardinteractive method #76
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
Conversation
|
Hey there, Thanks for the PR and your contribution! Can you please remove the libssh2 1.9.0 upgrade as part of this PR. That should be done separately from adding keyboard interactive implementation if you want to make a separate PR for it, or I can. The kbd interactive changes look good but need a short test to go in. |
|
Greetings, I've cleaned the PR. Please take a look |
|
Looks good, thanks for making it. Can you add a short test for the new |
Username and password needed. Embedded OpenSSHServer does not provide one. |
|
A test for exception is ok, just need to exercise the new code path. It should be raising exception on failure. |
|
Tried to. Got AuthenticationError not captured by assertRaises |
|
BTW, we're using own custom container for ssh tests - https://code.getnoc.com/infrastructure/tests/testsshd It allows to build more complicated tests, considering positive and negative scenarios: |
|
Thanks for that container pointer, looks good. Was looking for something similar - the embedded server can be a bit flaky, and not suited to more complex stuff. Made #81 to migrate to it. Thanks again for the contribution. |
Session.userauth_keyboardinteractive method