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

This module provides a means to permit incoming SSH connections based on the remote IP address and TCP port.

Link to this section Summary

Callbacks

Returns a boolean which should determine if the remote IP and TCP port, peer_address, is permitted to connect to the SSH server.

Link to this section Types

Specs

ip_address() :: :inet.ip_address()

Specs

peer_address() :: {ip_address(), port_number()}

Specs

port_number() :: :inet.port_number()

Link to this section Callbacks

Specs

permit?(peer_address()) :: boolean()

Returns a boolean which should determine if the remote IP and TCP port, peer_address, is permitted to connect to the SSH server.