pub(crate) async fn consent_for_ssh(
state: &AppState,
agent_block_id: &str,
agent_id: &str,
connection: &str,
what: &str,
) -> Result<(), String>Expand description
Tell the user that the agent agent_id (verified, verified_agent) in
agent_block_id wants to run what on the SSH connection with the user’s
identity (spec §8.2), and whether it may. connection is the canonical name
(ConnTarget::name), so one host is one consent however it is spelled.
“Always” for that agent and host is remembered (remote::agent_access) and
shows nothing again; otherwise the agent’s pane shows a card with a
countdown that goes ahead on its own (agent_notice), which the user can
stop, hurry or turn into “Always”.