Skip to main content

Module ssh_keys

Module ssh_keys 

Source
Expand description

SSH public-key parsing and fingerprinting helpers.

One parser for every entry point (CLI, web page, SSH daemon, eval natives), so fingerprints are computed 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).