pub struct Ssh {
pub host: String,
pub port: Option<u16>,
pub user: String,
pub key_file: Option<String>,
pub key_env: Option<String>,
pub os: TargetOs,
pub data_dir: String,
pub known_hosts: String,
pub connect_timeout_s: Option<u32>,
pub op_timeout_s: Option<u32>,
}Expand description
SSH access to a node’s host (SF-10).
Fields§
§host: StringHost name or address.
port: Option<u16>TCP port; the SSH default applies when absent.
user: StringLogin user.
key_file: Option<String>Path to a private key file. Mutually exclusive with key_env.
key_env: Option<String>Name of an environment variable holding a key. A NAME, never a key.
Mutually exclusive with key_file; neither means agent auth.
os: TargetOsHost operating system.
data_dir: StringThe gateway’s data directory on that host.
known_hosts: StringRepo-relative path of the reviewed known_hosts file that pins this
host’s key (D-01). Required: ign passes a copy of it as
UserKnownHostsFile with StrictHostKeyChecking=yes and never reads
the runner’s own ~/.ssh/known_hosts.
connect_timeout_s: Option<u32>Seconds ssh may take to connect (ConnectTimeout); 1..=120, default
DEFAULT_CONNECT_TIMEOUT_S (D-04).
op_timeout_s: Option<u32>Seconds one ssh or sftp invocation may run before it is killed;
1..=3600, default DEFAULT_OP_TIMEOUT_S (D-04).