SSHEcho

An echo server, to allow basic testing of SSH clients. Currently only supports ‘exec’ commands, not interactive shells.

To start listening on a port:

iex> SSHEcho.start_daemon 55555, "fred", "secret"
:ok

This will now echo back any ‘exec’ed commands to that port:

$ ssh -p 55555 fred@localhost hello
SSH server
Enter password for "fred"
password:
hello
$

Then to stop the daemon:

iex> SSHEcho.stop_daemon 55555

Installation

If available in Hex, the package can be installed by adding ssh_echo to your list of dependencies in mix.exs:

def deps do
  [{:ssh_echo, "~> 0.1.0"}]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/ssh_echo.