Skip to main content

ssh_config_path

Function ssh_config_path 

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

Returns the path to the user’s SSH config file.

  • Linux / macOS: ~/.ssh/config
  • Windows: %USERPROFILE%\.ssh\config

Uses the dirs crate so we never hardcode ~.