Skip to main content

Module ssh_keys

Module ssh_keys 

Source
Expand description

SSH public-key parsing and fingerprinting helpers.

Lives here (not in the daemon) so both the automation CLI (nomisync ssh-key add --key-file …) and the eventual SSH daemon compute fingerprints identically. Uses the ssh-key crate’s OpenSSH wire format so the SHA-256 fingerprint matches ssh-keygen -lf key.pub.

Structs§

ParsedKey
Parsed representation of an OpenSSH public key, ready to hand to AddSshKey.

Enums§

SshKeyParseError

Functions§

parse_authorized_keys_line
Parse a line in authorized_keys format (<type> <base64> [comment]).
parse_public_key_file
Read and parse an OpenSSH public-key file (typically ending in .pub).