pub fn ssh_public_key_line_from_status_lines(
status_lines: &[String],
) -> Option<String>Expand description
What: Extract the first OpenSSH public key line from setup status lines.
Inputs:
status_lines: Lines produced byrun_aur_ssh_setup/ validation (may include labels and hints).
Output:
- Trimmed key line (for example
ssh-ed25519 AAAA... comment) when found.
Details:
- Matches lines whose trimmed text starts with
ssh-(coversssh-ed25519,ssh-rsa, etc.).