diff options
Diffstat (limited to 'nix/ssh.nix')
| -rw-r--r-- | nix/ssh.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/nix/ssh.nix b/nix/ssh.nix new file mode 100644 index 0000000..d58a2a1 --- /dev/null +++ b/nix/ssh.nix @@ -0,0 +1,15 @@ +{...}:{ + services.fail2ban.enable = true; + + services.openssh = { + enable = true; + authorizedKeysInHomedir = false; + settings = { + PasswordAuthentication = false; + PermitRootLogin = "no"; + AllowUsers = [ "kassouni" "git" ]; + KbdInteractiveAuthentication = false; + PubkeyAuthentication = true; + }; + }; +} |