Sshd.ShellHandler.Example (esshd v0.3.0) View Source

An example implementation of Sshd.ShellHandler, implementing a very simple Read-Eval-Loop, that does nothing.

Link to this section Summary

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 Functions

Link to this function

on_connect(username, ip, port, method)

View Source

Callback implementation for Sshd.ShellHandler.on_connect/4.

Link to this function

on_disconnect(username, ip, port)

View Source

Callback implementation for Sshd.ShellHandler.on_disconnect/3.

Link to this function

on_shell(username, pubkey, ip, port)

View Source

Callback implementation for Sshd.ShellHandler.on_shell/4.