diff --git a/crates/remote/src/transport/ssh.rs b/crates/remote/src/transport/ssh.rs index db6a1971a7bc43471fe71c25d571c0a53f81bd72..a8e4245b4352ec06ff285d772550993172173d78 100644 --- a/crates/remote/src/transport/ssh.rs +++ b/crates/remote/src/transport/ssh.rs @@ -867,7 +867,7 @@ impl SshRemoteConnection { if let Some(mut stdin) = child.stdin.take() { use futures::AsyncWriteExt; stdin.write_all(sftp_batch.as_bytes()).await?; - drop(stdin); + stdin.flush().await?; } let output = child.output().await?;