mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-15 13:02:04 +01:00
fix(security): enable sudo password for ryan, use root for remote deployment
This commit is contained in:
1 parent
2072da67a5
commit
2c8d0f629c
1 file changed
+2
-1
@@ -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