This commit is contained in:
iFargle 2023-07-06 19:58:22 +09:00
parent ec02d0b00e
commit 04617073fe
2 changed files with 2 additions and 1 deletions

View file

@ -55,7 +55,7 @@
enable = true; enable = true;
allowedTCPPorts = [ ]; allowedTCPPorts = [ ];
allowedUDPPorts = [ ]; allowedUDPPorts = [ ];
trustedInterfaces = [ "tailscale0" ]; networking.interfaces.tailscale0.allowedTCPPorts = [ 22 ];
}; };
}; };

View file

@ -1,6 +1,7 @@
{ config, pkgs, ... }: { { config, pkgs, ... }: {
services.openssh = { services.openssh = {
enable = true; enable = true;
openFirewall = false;
settings = { settings = {
LogLevel = "VERBOSE"; # Used for fail2ban monitoring LogLevel = "VERBOSE"; # Used for fail2ban monitoring
PermitRootLogin = "no"; PermitRootLogin = "no";