summaryrefslogtreecommitdiff
path: root/lib/chessh/auth/keys.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chessh/auth/keys.ex')
-rw-r--r--lib/chessh/auth/keys.ex10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/chessh/auth/keys.ex b/lib/chessh/auth/keys.ex
new file mode 100644
index 0000000..d85f4a4
--- /dev/null
+++ b/lib/chessh/auth/keys.ex
@@ -0,0 +1,10 @@
+defmodule Chessh.Auth.KeyAuthenticator do
+ use Sshd.PublicKeyAuthenticator
+ require Logger
+
+ def authenticate(username, public_key, _opts) do
+ Logger.debug("#{inspect(username)}")
+ Logger.debug("#{inspect(public_key)}")
+ true
+ end
+end