Skip to main content

pull_remote_api_token

Function pull_remote_api_token 

Source
pub fn pull_remote_api_token(
    runner: &dyn ProcessRunner,
    opts: &RemoteOptions,
) -> Result<String>
Expand description

Pull the box Status API bearer over SSH (sudo) and save the tip file.

Uses an inherited TTY (ssh -tt) so remote sudo can prompt, then captures the drop file contents for the PC tip path.

ยงErrors

Returns HortoError when SSH, sudo, parse, or local write fails.