no interactive auth for gitea
This commit is contained in:
@@ -104,7 +104,14 @@
|
||||
};
|
||||
|
||||
};
|
||||
services.openssh.enable = true;
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
PermitRootLogin = lib.mkForce "no";
|
||||
PasswordAuthentication = false;
|
||||
KbdInteractiveAuthentication = false;
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 22 3000 ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user