Sshd.ShellHandler behaviour (esshd v0.3.0) View Source
As incoming SSH connections are accepted, authorized, and request remote
shell services; they are passed to the Sshd.ShellHandler.on_shell/4
callback.
Link to this section Summary
Callbacks
User function callback to perform any tasks prior to launching a shell session.
User function callback to perform any tasks after a shell session. Will always be called, regardless of disconnect reason.
User function callback to handle incoming shell requests.
Link to this section Types
Specs
ip_address() :: :inet.ip_address()
Specs
method() :: String.t()
Specs
peer_address() :: {ip_address(), port_number()}
Specs
port_number() :: :inet.port_number()
Specs
ssh_publickey() :: binary()
Specs
username() :: String.t()
Link to this section Callbacks
Specs
on_connect( username(), ip_address(), port_number(), method() ) :: :ok | {:error, any()}
User function callback to perform any tasks prior to launching a shell session.
Specs
on_disconnect( username(), ip_address(), port_number() ) :: :ok | {:error, any()}
User function callback to perform any tasks after a shell session. Will always be called, regardless of disconnect reason.
Specs
on_shell( username(), ssh_publickey(), ip_address(), port_number() ) :: :ok | {:error, any()}
User function callback to handle incoming shell requests.