From b4743f9efb685545cdd780cc9ba7a50e083dd8cf Mon Sep 17 00:00:00 2001 From: Simponic Date: Mon, 19 Dec 2022 02:39:40 -0700 Subject: Get public key authenticator actually running, add password validator via hash --- config/config.exs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'config/config.exs') diff --git a/config/config.exs b/config/config.exs index 807824a..61bf72f 100644 --- a/config/config.exs +++ b/config/config.exs @@ -1,11 +1,19 @@ import Config +config :chessh, Chessh.Repo, + database: "chessh", + username: "postgres", + password: "postgres", + hostname: "localhost" + +config :chessh, ecto_repos: [Chessh.Repo] + config :esshd, enabled: true, priv_dir: Path.join(Path.dirname(__DIR__), "priv/keys"), handler: {Chessh.Shell, :on_shell, 4}, port: 42069, - public_key_authenticator: Chessh.Auth.KeyAuthenticator, - password_authenticator: Chessh.Auth.PasswordAuthenticator + password_authenticator: Chessh.Auth.PasswordAuthenticator, + public_key_authenticator: Chessh.Auth.KeyAuthenticator import_config "#{config_env()}.exs" -- cgit v1.3