-
Notifications
You must be signed in to change notification settings - Fork 153
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
Weird error in different situations: "Unable to exchange encryption keys" #349
Comments
Okay, I've finally narrowed it down to a manageable amount of code, but I still have no idea what the problem could be. I have set up a new test project for only testing this.
src/main.rs:
Note the comments. If I exclude |
Tried to use I'm not really sure what's going on but manually calling
I'd still like to know what's going on and if there's a more correct solution or if I'm doing something wrong. |
Hi,
I have a weird problem with SSH handshake that I didn't have previously. Maybe related to SSH server getting updated at some point, I don't know.
The thing is that if I build a flatpak, it works, but if I do just e.g.
cargo run
it doesn't.The error is "[Session(-1)] Unable to exchange encryption keys".
Cargo.lock says that ssh2-crate version is 0.9.5.
Regular OpenSSH client works.
Without flatpak, the SSH server logs show:
And with flatpak:
The point where it hangs is where client-side error is returned from handshake():
Any idea what could be causing this?
The text was updated successfully, but these errors were encountered: