disable all but public key auth for ssh

This commit is contained in:
2026-07-07 20:55:02 +02:00
parent 734f9db4ba
commit 781ea4f7b5
+2 -3
View File
@@ -103,10 +103,9 @@
enable = true; enable = true;
ports = [ 22 ]; ports = [ 22 ];
settings = { settings = {
PasswordAuthentication = true; PasswordAuthentication = false;
KbdInteractiveAuthentication = false; KbdInteractiveAuthentication = false;
# AllowUsers = [ "backup" ]; AuthenticationMethods = "publickey";
# UseDns = true;
X11Forwarding = false; X11Forwarding = false;
PermitRootLogin = "no"; PermitRootLogin = "no";
}; };