Skip to main content

resolve_ssh_dir

Function resolve_ssh_dir 

Source
pub fn resolve_ssh_dir() -> Option<PathBuf>
Expand description

Resolve the SSH directory to scan for keys. Honours a thread-local override set by tests; falls back to ~/.ssh in production. Returns None when the home directory cannot be determined and no override is set, so callers can short-circuit cleanly.