Skip to main content

Module ssh

Module ssh 

Source
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§

RemoteShellCommand
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§

KnownHostsPolicy
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 -s reader, which replaces itself with a command shell whose stdin is empty. An exact sh -s keeps 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.