diff options
author | Nick Van Doorn <nick@nvandoorn.com> | 2023-03-16 20:48:20 +0000 |
---|---|---|
committer | Nick Van Doorn <nick@nvandoorn.com> | 2023-03-16 20:48:20 +0000 |
commit | 23c71c613a764dc4ac2cb151c549fab71ea93590 (patch) | |
tree | b29d4e56eee1b34de45577826c9f332de78aceb5 | |
parent | 6475050653987a16b197c6a64dc54ddeff4482ad (diff) |
Disable password SSH and root account
-rw-r--r-- | configuration.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configuration.nix b/configuration.nix index 649e6a8..6cd4a3b 100644 --- a/configuration.nix +++ b/configuration.nix @@ -108,6 +108,9 @@ # Enable the OpenSSH daemon. services.openssh.enable = true; + services.openssh.permitRootLogin = "no"; + services.openssh.passwordAuthentication = false; + networking.firewall.enable = true; networking.firewall.checkReversePath = "loose"; |