Allow SSH login to any machine

This commit is contained in:
Katherina Walshe-Grey 2024-06-19 20:22:37 +01:00
parent f464d022e5
commit 1e20b6b401
3 changed files with 1 additions and 7 deletions

13
common/ssh.nix Normal file
View file

@ -0,0 +1,13 @@
{ config, lib, pkgs, ... }:
{
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
PermitRootLogin = "no";
};
};
services.fail2ban.enable = true;
}