-
Notifications
You must be signed in to change notification settings - Fork 143
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
JSch does not support to extend or replace "UserAuthNone" class #293
Comments
I'm not sure I understand the use case for overriding |
Of course, when JSch used against It is due to This device do not respond for this kind of request, which is not handled by JSch.
which implies that this is device specific issue. It is also possible to log in to this device (authenticate and open shell channel) through putty, which implies that it is possible to login to device with different approach (putty skips auth none ? i dont know). That is why we want to rewrite |
What if you try using the |
We are fully aware of this option, but when applied, there is lost of compatibility with In our context, it is not possible to determine, what device we are dealing with beforehand. We need to catch There are multiple solutions for this:
Is there any specific reason, why We could also just catch Also please note that all Please let us know if any of mentioned solution is valid, we would be more than happy to create a pull request. |
Hi @MatusSkerlik, I've opened #295 that includes a change to make Thanks, |
Hi @norrisjeremy , I can confirm that changes you made works for us. I have created simulated ssh server in After wrapping Authentification than can be then successfull at any of these methods, which is what we expected. We appreciate it, thanks a lot, |
Greetings,
it is possible to change implementation of "userauth.none" in config throught "UserAuth" interface,
but when it is actually done, it will throw cast exception.
Error occurs after server responds to auth none request, when JSch want to get an array of supported auth methods.
There is a cast of class that implemented
UserAuth
toUserAuthNone
, which is package private class, so it cannot be extended.I propose to add try-catch block for this cast or create new interface (eg.
IUserAuthNone
), which would addgetMethods()
method to interface definition, so it can be implemented by third party.Thanks,
Matus
The text was updated successfully, but these errors were encountered: