From 21b9cfbfc5a292d5eaee02ac8f7d31e65293f80f Mon Sep 17 00:00:00 2001 From: Trevor Vallender Date: Fri, 7 Jul 2023 19:42:18 +0100 Subject: [PATCH] SSH on kernighan --- system/ritchie/ritchie.nix | 9 +++++++-- system/shared/shared-configuration.nix | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/system/ritchie/ritchie.nix b/system/ritchie/ritchie.nix index 260041a..02403ee 100644 --- a/system/ritchie/ritchie.nix +++ b/system/ritchie/ritchie.nix @@ -20,8 +20,13 @@ in ../shared/filesystem.nix ]; - networking.hostName = "ritchie"; - + networking = { + hostName = "ritchie"; + firewall = { + enable = true; + allowedTCPPorts = [ 2222 ]; + }; + }; users.users.foxsoft = { isNormalUser = true; extraGroups = [ diff --git a/system/shared/shared-configuration.nix b/system/shared/shared-configuration.nix index 7ab47c1..cb8dea6 100644 --- a/system/shared/shared-configuration.nix +++ b/system/shared/shared-configuration.nix @@ -61,6 +61,7 @@ services.openssh = { enable = true; + ports = [ 2222 ]; settings.PasswordAuthentication = false; };