Adding ssh

This commit is contained in:
Miguel Palhas
2024-10-06 11:52:19 +01:00
parent 66c1527a6b
commit 8001c55931
4 changed files with 22 additions and 2 deletions
+9 -2
View File
@@ -1,4 +1,11 @@
{ inputs, pkgs, ... }:
{ pkgs, ... }:
{
environment.systemPackages = [ pkgs.openssh ];
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
PermitRootLogin = "no";
};
};
}