Skip to main content

resolve_askpass

Function resolve_askpass 

Source
pub fn resolve_askpass() -> Result<PathBuf>
Expand description

Resolve $SSH_ASKPASS, else a common askpass name on PATH.

Used only to populate OpenSSH’s environment for SSH login when super::ssh::SshEnv::force_askpass is set. Sudo reboot does not use this.

§Errors

Returns HortoError when neither the env var nor a known binary is found.