diff --git a/crates/remote/src/transport/ssh.rs b/crates/remote/src/transport/ssh.rs index ad9cb3e91623bdc34ce012c87933202f87399815..133655781de297f1cf69c906dccb567d048a8e54 100644 --- a/crates/remote/src/transport/ssh.rs +++ b/crates/remote/src/transport/ssh.rs @@ -850,7 +850,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?;