security/close-ssh #128

Merged
b12f merged 1 commit from security/close-ssh into main 2024-04-05 12:51:05 +00:00

View file

@ -1,6 +1,10 @@
{ pkgs, ... }: { { pkgs, lib, ... }: {

Need to bring in lib here

Need to bring in `lib` here
# Don't expose SSH via public interfaces
networking.firewall.interfaces.wg-ssh.allowedTCPPorts = [ 22 ];
services.openssh = { services.openssh = {
enable = true; enable = true;
openFirewall = lib.mkDefault false;
settings = { settings = {
PermitRootLogin = "prohibit-password"; PermitRootLogin = "prohibit-password";
PasswordAuthentication = false; PasswordAuthentication = false;