Skip to main content

ssh_public_key_line_from_status_lines

Function ssh_public_key_line_from_status_lines 

Source
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 by run_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- (covers ssh-ed25519, ssh-rsa, etc.).