Behaviour and helpers for SFTP authentication.
Applications can pass auth: {Module, opts} to Sftpd.start_server/1 or
Sftpd.child_spec/1. The callbacks return an opaque session map that is
threaded into backend operations for the authenticated SSH connection.
Summary
Functions
Decode one OpenSSH authorized-key line into an Erlang public key.
Return an OpenSSH-style public-key fingerprint.
Types
@type session() :: map()
Opaque session context returned by application auth callbacks.
Callbacks
Functions
Decode one OpenSSH authorized-key line into an Erlang public key.
Return an OpenSSH-style public-key fingerprint.
SHA256 fingerprints are formatted as SHA256:<base64-no-padding>. MD5
fingerprints are formatted as MD5:<colon-separated-hex>.