feat: openssh configuration

This commit is contained in:
Guz
2024-10-01 19:50:33 -03:00
parent 3a2668e904
commit 881f9d1ef8
2 changed files with 10 additions and 1 deletions

View File

@@ -159,6 +159,10 @@
# Enable the OpenSSH daemon.
services.openssh.enable = true;
services.openssh.settings = {
PasswordAuthentication = false;
PermitRootLogin = "forced-commands-only";
};
# Bootloader.
boot.loader.systemd-boot.enable = true;

View File

@@ -117,7 +117,7 @@
hostName = "fighter";
wireless.enable = false;
dhcpcd.enable = true;
defaultGateway = "192.168.1.1";
defaultGateway = "${config.battleship-secrets.lesser.devices.defaultGateway}";
interfaces."wlp2s0".ipv4.addresses = [
{
address = "${config.battleship-secrets.lesser.devices.figther}";
@@ -154,6 +154,11 @@
# Enable the OpenSSH daemon.
services.openssh.enable = true;
services.openssh.settings = {
PasswordAuthentication = false;
PermitRootLogin = "forced-commands-only";
};
# Open ports in the firewall.
networking.firewall.allowedTCPPorts = [80 433];
# networking.firewall.allowedUDPPorts = [ ... ];