openssh: SshSession::connect_mux hangs on MacOS 14.5
When running the example code, Rust will print “SSH before” but fail to print “SSH after”. After a while, I will see a warning about my test “has been running for over 60 seconds”. It will continue hang with no error or further output.
Am I missing libraries on my machine? Are there other suggestions on how to find out what is causing this to hang? The russh crate has the same issue.
println!("SSH before"); let result = SshSession::connect_mux( format!( "ssh://{}@{}:{}", &credentials.username, &credentials.host, &credentials.port ), KnownHosts::Add, ) .await; println!("SSH after");
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 21 (11 by maintainers)
@NobodyXu , upgrading tokio didn’t help. I created an issue just FYI: https://github.com/tokio-rs/tokio/issues/6770