esshd v0.1.0 Sshd.ShellHandler.Example View Source

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

Link to this section Summary

Functions

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

Link to this type ip_address() View Source
ip_address() :: :inet.ip_address
Link to this type peer_address() View Source
peer_address() :: {ip_address, port_number}
Link to this type port_number() View Source
port_number() :: :inet.port_number
Link to this type ssh_publickey() View Source
ssh_publickey() :: binary

Link to this section Functions

Link to this function on_connect(username, ip, port, method) View Source

User function callback to perform any tasks prior to launching a shell session.

Callback implementation for Sshd.ShellHandler.on_connect/4.

Link to this function on_disconnect(username, ip, port) View Source

User function callback to perform any tasks after a shell session. Will always be called, regardless of disconnect reason.

Callback implementation for Sshd.ShellHandler.on_disconnect/3.

Link to this function on_shell(username, pubkey, ip, port) View Source

User function callback to handle incoming shell requests.

Callback implementation for Sshd.ShellHandler.on_shell/4.