Skip to main content

list_sessions

Function list_sessions 

Source
pub async fn list_sessions(ssh_dir: &Path) -> Result<Vec<ControlSession>>
Expand description

Discover live ControlMaster sessions by scanning ssh_dir prefixes (cm-, control-, mux-, ctrl-) and /tmp/ssh-* via ssh -O check.

ยงErrors

Error::TaskFailed if the directory scan task fails; individual ssh -O check failures only exclude the candidate.