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 ++++++++++-- config/dev.exs | 8 -------- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'config') 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" diff --git a/config/dev.exs b/config/dev.exs index f71d02e..becde76 100644 --- a/config/dev.exs +++ b/config/dev.exs @@ -1,9 +1 @@ import Config - -config :chessh, Chessh.Repo, - database: "chessh", - username: "postgres", - password: "postgres", - hostname: "localhost" - -config :chessh, ecto_repos: [Chessh.Repo] -- cgit v1.2.3-70-g09d2