disable all but public key auth for ssh
This commit is contained in:
+2
-3
@@ -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";
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user