Skip to main content

ssh_pipe_file

Function ssh_pipe_file 

Source
pub fn ssh_pipe_file(
    spec: &SshSpec,
    remote_path: &str,
    bytes: &[u8],
    mode: u32,
) -> Result<()>
Expand description

Stream bytes to remote_path on the host, then chmod mode. Used for the binary, config.toml, and secrets.toml — the proven pattern of piping over the same control-channel ssh rather than requiring scp.