-
Notifications
You must be signed in to change notification settings - Fork 89
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
OpenSSH sftp cannot connect with v1.4.14-stable, whilst it could with v1.4.13-stable #540
Comments
With git bisect I was able to identify the first commit that caused this precise symptom.
Analyzing this commit, turns out there's a copy'n'paste error. The following patch fixes it:
After applying that patch over the aforementioned commit, it all works again, but applying that patch over v1.4.14-stable makes another problem show up: sftp stalls waiting for some replies that never arrives.
If I then rerun sftp with the |
After further investigation, reverting the following two commits, and then applying the aforementioned patch, makes things work: 9d1996a, 169d2c6. |
I am sure it wouldn't, I just thought I'd point out that there lies the source of the issue, so to help you guys find a proper fix. :) Thanks for the prompt response! |
When investigating another report I added this pull request (#559). I suspect it will resolve this issue too. |
Only the first one, though, not the other caused by something happened because of 9d1996a and 169d2c6, as reported previously. |
For the second part of the issue I think this part of the pull request might be related https://github.com/wolfSSL/wolfssh/pull/559/files#diff-1c4e2f5adfa1ad30618e78ff459b2c0758ecf34278459ad0a8d58db4fec622eaR5845. Before adding that I was seeing a hang in the example server after rejecting a peer's public key. |
You are right, that PR solves this specific issue. I was misled by the fact we're experiencing an issue in our code base which I was able to identify as stemming from this very issue we are discussing. However, even with that PR, in our code base we still experience the hang. Has anything changed about what's expected from the user auth callback, due to 9d1996a and 169d2c6? |
Ok, I believe I have found it: there's a missing |
Given the merge of #559 in master, the issue can now be closed. |
After compiling v1.4.14-stable and running the echo server
I tried running OpenSSH sftp for a test:
But that doesn't work.
On the
sftp
side:On the
echoserver
side:Decryption is failing.
Such a situation doesn't happen with v1.4.13-stable. In both cases, wolfssl/wolfcrypto v5.6.0 is being used.
The configure command line for wolfssh:
The configure command line for wolfssl/wolfcrypto:
The text was updated successfully, but these errors were encountered: