Skip to main content

ssh_command_for_key

Function ssh_command_for_key 

Source
pub fn ssh_command_for_key(private_key_path: &str) -> String
Expand description

The core.sshCommand value that pins one private key for a repository (ADR-0008): ssh -i "<key>" -o IdentitiesOnly=yes. Backslashes become forward slashes, which git’s sh accepts on Windows too.