From 90103a9ca36d11d5e3218f1264d8af17cf2516b5 Mon Sep 17 00:00:00 2001 From: Gerg-L Date: Wed, 26 Jul 2023 18:07:58 -0400 Subject: [PATCH] Fix OpenSSH warnings --- minimal/nixos/configuration.nix | 10 ++++++---- standard/nixos/configuration.nix | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/minimal/nixos/configuration.nix b/minimal/nixos/configuration.nix index f752915e..9ca3131c 100644 --- a/minimal/nixos/configuration.nix +++ b/minimal/nixos/configuration.nix @@ -91,10 +91,12 @@ # Feel free to remove if you don't need it. services.openssh = { enable = true; - # Forbid root login through SSH. - permitRootLogin = "no"; - # Use keys only. Remove if you want to SSH using password (not recommended) - passwordAuthentication = false; + settings = { + # Forbid root login through SSH. + PermitRootLogin = "no"; + # Use keys only. Remove if you want to SSH using password (not recommended) + PasswordAuthentication = false; + }; }; # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion diff --git a/standard/nixos/configuration.nix b/standard/nixos/configuration.nix index 37a30f52..c8b7600f 100644 --- a/standard/nixos/configuration.nix +++ b/standard/nixos/configuration.nix @@ -100,10 +100,12 @@ # Feel free to remove if you don't need it. services.openssh = { enable = true; - # Forbid root login through SSH. - permitRootLogin = "no"; - # Use keys only. Remove if you want to SSH using password (not recommended) - passwordAuthentication = false; + settings = { + # Forbid root login through SSH. + PermitRootLogin = "no"; + # Use keys only. Remove if you want to SSH using password (not recommended) + PasswordAuthentication = false; + }; }; # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion