removed password auth from ssh for defiant

This commit is contained in:
Leyla Becker 2024-09-03 15:34:40 -05:00
parent 453ed74a3a
commit a91f599836

View file

@ -42,11 +42,10 @@
enable = true;
ports = [ 22 ];
settings = {
PasswordAuthentication = true;
PasswordAuthentication = false;
AllowUsers = [ "leyla" ]; # Allows all users by default. Can be [ "user1" "user2" ]
UseDns = true;
X11Forwarding = false;
PermitRootLogin = "without-password"; # "yes", "without-password", "prohibit-password", "forced-commands-only", "no"
};
};