mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-21 08:21:24 +02:00
fix(security): enable sudo password for ryan, use root for remote deployment
This commit is contained in:
@@ -15,7 +15,8 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
X11Forwarding = true;
|
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
|
PasswordAuthentication = false; # disable password login
|
||||||
};
|
};
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user