Skip to main content

effective_host

Function effective_host 

Source
pub fn effective_host(
    endpoint: &RemoteEndpoint,
    workdir: &Path,
    remote: &AliasRemote,
    cancel: &CancelToken,
) -> Result<String, EffectiveHostError>
Expand description

Resolve an SSH alias against OpenSSH’s effective configuration on the endpoint (ssh -G run remotely): the alias belongs to the machine whose remote carries it, and evaluating it with the local user’s config would answer for the wrong host. Owned worker work, cancellable like every bounded remote run.