mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-02-22 07:57:41 +01:00
fix(security): enable sudo password for ryan, use root for remote deployment
This commit is contained in:
@@ -15,7 +15,8 @@
|
||||
enable = true;
|
||||
settings = {
|
||||
X11Forwarding = true;
|
||||
PermitRootLogin = "no"; # disable root login
|
||||
# root user is used for remote deployment, so we need to allow it
|
||||
PermitRootLogin = "prohibit-password";
|
||||
PasswordAuthentication = false; # disable password login
|
||||
};
|
||||
openFirewall = true;
|
||||
|
||||
Reference in New Issue
Block a user