-
Notifications
You must be signed in to change notification settings - Fork 360
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
Session is being closed/Invalid packet length: 1096041266 with Apache Mina SSHD #623
Comments
The log shows you're using 2.10.0, not 2.14.0, and it only shows that the connection to this 10-years old dropbear is closed after the client has sent the KEX_INIT message. It gives no hint why that would have happened, so I assume the dropbear server is closing it. No idea why it would do so. Things you can try: |
As an aside: 1096041266 is 0x41544332, which would be "ATC2" in ASCII. If these characters have any possible meaning with that device, then perhaps the server is producing some text output when it should not? (Perhaps a bit far-fetched, but one never knows...) |
@tomaswolf I edited the version, my mistake. I also tried with 2.14.0 though and same issue. Also, this ssh is using diffie-hellman-group1-sha1 key exchange algorithm. So, I have added line to support this:
Do you think it is sufficient? |
Don't know. The log shows it's being used. |
@tomaswolf another similar but a bit different log I am getting is:
|
I cannot help you. This log shows
so evidently you're not connecting to dropbear anymore, and evidently something goes wrong very early. You will have to debug this problem on your own. |
Version
sshd-core-2.10.0
Bug description
I'm facing an issue while trying to authenticate an SSH session using the Apache Mina SSHD library in Java in a spring boot microservice project. I have a working implementation using JSch that connects successfully with a private key, but the equivalent code in Apache Mina SSHD fails with the error:
or sometime:
Here is the code implementation:
The error occurs in the code line
session.auth().verify(ftpTimeOutInSeconds * 1000L);
What could be the reason for the authentication failure in the Apache Mina SSHD implementation, and how can I resolve this issue? Any insights or recommendations for debugging further would be greatly appreciated!
Actual behavior
Not able to connect to SSH using Apache Mina SSHD
Expected behavior
We should get SSH connection correct as it can be connected with JSch
Relevant log output
Other information
No response
The text was updated successfully, but these errors were encountered: