Packages

Simple echo server for testing SSH clients

Current section

Files

Jump to
ssh_echo lib ssh_echo.ex
Raw

lib/ssh_echo.ex

defmodule SSHEcho do
@moduledoc """
Top-level module. See README for instructions.
"""
alias SSHEcho.Controller
@doc """
Start a daemon listening on the specified port, authenticated by the supplied
username and password.
"""
def start_daemon(port, username, password) do
Controller.start_daemon port, username, password
end
@doc """
Stop the daemon on a particular port.
"""
def stop_daemon(port), do: Controller.stop_daemon port
@doc """
Stop all daemons.
"""
def stop_daemons, do: Controller.stop_daemons
end