blob: f9f475d4d3fd5d0ac810076c293d41cec97960de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
defmodule Chessh.Shell do
use Sshd.ShellHandler
def on_shell(_username, _public_key, _ip, _port) do
:ok =
IO.puts(
"Interactive example SSH shell - type exit ENTER to quit and it is running on #{inspect(self())}"
)
end
def on_connect(_username, _ip, _port, _method) do
Logger.debug("Connection established")
end
def on_disconnect(_username, _ip, _port) do
Logger.debug("Connection disestablished")
end
end
|