Sshd.PublicKeyAuthenticator behaviour (esshd v0.3.0) View Source

This module helps with Public Key authentication.

Link to this section Summary

Callbacks

Returns a boolean that determines if the username user, presenting the public_key OpenSSH public key, is authorized to connect to the SSH server.

Link to this section Types

Specs

opts() :: Keyword.t()

Specs

public_key() :: binary()

Specs

username() :: charlist()

Link to this section Callbacks

Link to this callback

authenticate(username, public_key, opts)

View Source

Specs

authenticate(username(), public_key(), opts()) :: boolean()

Returns a boolean that determines if the username user, presenting the public_key OpenSSH public key, is authorized to connect to the SSH server.