diff --git a/crates/remote/src/transport/ssh.rs b/crates/remote/src/transport/ssh.rs index db6a1971a7..a8e4245b43 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?;