fn get_authorized_keys_path_from_sshd()

in libazureinit/src/provision/ssh.rs [118:128]


fn get_authorized_keys_path_from_sshd(
    sshd_config_command_runner: impl Fn() -> io::Result<Output>,
) -> Option<String> {
    let output = run_sshd_command(sshd_config_command_runner)?;

    let path = extract_authorized_keys_file_path(&output.stdout);
    if path.is_none() {
        error!("No authorizedkeysfile setting found in sshd configuration");
    }
    path
}