pub struct RemoteConfig {
pub host: String,
pub workdir: String,
pub os: Os,
pub shell: Vec<String>,
pub connect_timeout_secs: u64,
pub server_alive_interval_secs: u64,
}Fields§
§host: StringSSH destination: an alias from ~/.ssh/config, or user@host.
Authentication, jump hosts, ports and keys all come from the user’s
own OpenSSH configuration; FarHand never handles credentials itself.
workdir: StringDirectory relative paths resolve against and commands start in.
Absolute (/srv/app, C:\\work), or ~ / ~/... for the remote
user’s home.
os: OsWhat the remote runs. Detected on connect from the SFTP root, so
auto is fine; set it explicitly so the model is told before the
first command which shell it is writing for.
shell: Vec<String>Shell that runs every command, as argv. On a POSIX remote the
command text is appended as one final argument, so the last element
must accept a script (-c, -lc, …). On Windows only the first
element is used, as the PowerShell executable (powershell.exe by
default; set ["pwsh"] for PowerShell 7).
connect_timeout_secs: u64§server_alive_interval_secs: u64Passed to ssh as ServerAliveInterval; keeps NAT tables warm.