Expand description
SSH client utilities for remote command execution.
Provides connection management, command execution, and pooling support for the remote compilation pipeline.
This module is only available on Unix platforms (requires openssh crate).
Re-exports§
pub use crate::ssh_utils::CommandResult;pub use crate::ssh_utils::EnvPrefix;pub use crate::ssh_utils::build_env_prefix;pub use crate::ssh_utils::is_retryable_transport_error;pub use crate::ssh_utils::is_retryable_transport_error_text;pub use crate::ssh_utils::is_valid_env_key;pub use crate::ssh_utils::shell_escape_value;pub use crate::ssh_utils::identities_only_args;
Structs§
- Remote
Shell Command - Remote command and optional stdin payload for a system SSH invocation.
- SshClient
- SSH client for a single worker connection.
- SshOptions
- SSH connection options.
- SshPool
- Connection pool for managing multiple SSH connections.
Enums§
- Known
Hosts Policy - Known hosts policy for SSH connections.
Functions§
- remote_
shell_ command - Prepare a POSIX script without exposing its contents to Windows cmd.exe.
Windows uses a fixed
sh -sreader, which replaces itself with a command shell whose stdin is empty. An exactsh -skeeps its existing EOF behavior. POSIX workers receive the original command argument and null stdin. - write_
ssh_ command_ stdin - Write and close an SSH script pipe within the caller’s execution deadline. Run concurrently with output draining. A closed pipe is allowed so the caller can collect an early SSH failure’s actual exit status and stderr.