From ef460753a81d8ef642a5220e7fa1a5b3dc8c58ec Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Tue, 30 Jan 2024 10:22:27 +0100 Subject: [PATCH] feat(modules/dgn-ssh): Disable kbdinteractiveauthentication --- modules/dgn-ssh.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/modules/dgn-ssh.nix b/modules/dgn-ssh.nix index ede7bae..9bca405 100644 --- a/modules/dgn-ssh.nix +++ b/modules/dgn-ssh.nix @@ -35,23 +35,26 @@ { config, lib, ... }: let - inherit (lib) - mkEnableOption - mkIf; + inherit (lib) mkEnableOption mkIf; cfg = config.dgn-ssh; in { options.dgn-ssh = { - enable = mkEnableOption "ssh default configuration." // { default = true; }; + enable = mkEnableOption "ssh default configuration." // { + default = true; + }; }; config = mkIf cfg.enable { services.openssh = { enable = true; - settings.PasswordAuthentication = false; + settings = { + PasswordAuthentication = false; + KbdInteractiveAuthentication = false; + }; }; programs.mosh.enable = true;