Former-commit-id: 154c21859d
This commit is contained in:
Hadi
2024-06-21 13:58:14 +02:00
parent f2b742e470
commit 9ab4dae87b
17 changed files with 20 additions and 20 deletions

View File

@@ -0,0 +1,15 @@
# SSH server
{
services.openssh = {
enable = true;
ports = [ 22 ];
settings = {
PasswordAuthentication = true;
AllowUsers = null; # Allows all users by default. Can be [ "user1" "user2" ]
UseDns = true;
X11Forwarding = false;
PermitRootLogin = "no"; # "yes", "without-password", "prohibit-password", "forced-commands-only", "no"
};
};
networking.firewall.allowedTCPPorts = [ 22 ];
}