esshd v0.1.0 Sshd.ShellHandler.Erlang View Source

An implementation of Sshd.ShellHandler which starts an Erlang REPL.

Usage

Add the following configuration to your application:

config :esshd,
  handler: "Sshd.ShellHandler.Erlang"

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_address, port_number, 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_address, port_number) 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_address, port_number) View Source

User function callback to handle incoming shell requests.

Callback implementation for Sshd.ShellHandler.on_shell/4.