forked from DGNum/infrastructure
feat(modules/dgn-ssh): Disable kbdinteractiveauthentication
This commit is contained in:
parent
073a816fd6
commit
ef460753a8
1 changed files with 8 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue