From 791bc4c5000cc56e6a3f91decee6b6a533e524cb Mon Sep 17 00:00:00 2001 From: Mat Jones Date: Tue, 22 Oct 2024 20:13:54 -0400 Subject: [PATCH] feat(server): Don't use a non-standard SSH port it doesn't actually enhance security at all, plus it's only accessible via LAN anyway --- home-manager/modules/ssh.nix | 5 +---- hosts/server/default.nix | 2 -- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/home-manager/modules/ssh.nix b/home-manager/modules/ssh.nix index 8665e416..0e8b2102 100644 --- a/home-manager/modules/ssh.nix +++ b/home-manager/modules/ssh.nix @@ -13,10 +13,7 @@ in { enable = true; forwardAgent = true; matchBlocks = { - "nixos-server" = { - port = 6969; - hostname = "192.168.189.2"; - }; + "nixos-server".hostname = "192.168.189.2"; "gitlab.1password.io" = { port = 2227; hostname = "ssh.gitlab.1password.io"; diff --git a/hosts/server/default.nix b/hosts/server/default.nix index fe4855bd..16499197 100644 --- a/hosts/server/default.nix +++ b/hosts/server/default.nix @@ -50,8 +50,6 @@ PermitRootLogin = "no"; AllowUsers = [ "mat" ]; }; - - ports = [ 6969 ]; }; };