Skip to main content

prove_interactive_shell

Function prove_interactive_shell 

Source
pub async fn prove_interactive_shell(
    host: &str,
    port: u16,
    user: &str,
    pass: &str,
) -> Result<()>
Expand description

Prove a usable interactive shell, not just an exec channel: open a real pty shell (the exact path a user login takes — profile, prompt, the lot), send a marker, and read it back. An exec whoami passing while interactive logon hangs is a real failure mode (profile load, shell startup); only a prompt answering proves the prompt exists. Bounded by timeouts::READINESS_PROBE_BUDGET: answers in milliseconds on a landed guest, loud error otherwise — never a hang.