From f183eee3ac856db4d9d84c63b5e2f798f53f52f3 Mon Sep 17 00:00:00 2001 From: jasmine Date: Thu, 6 Jun 2024 20:34:19 +0800 Subject: [PATCH] Move ssh port --- home-manager/sajenim/features/cli/default.nix | 1 + nixos/common/global/ssh.nix | 2 ++ 2 files changed, 3 insertions(+) diff --git a/home-manager/sajenim/features/cli/default.nix b/home-manager/sajenim/features/cli/default.nix index cca3c8d..f3af416 100644 --- a/home-manager/sajenim/features/cli/default.nix +++ b/home-manager/sajenim/features/cli/default.nix @@ -15,6 +15,7 @@ matchBlocks."viridian" = { hostname = "192.168.1.102"; identityFile = "/home/sajenim/.ssh/sajenim_sk"; + port = 62841; }; }; } diff --git a/nixos/common/global/ssh.nix b/nixos/common/global/ssh.nix index eabf9f3..b366b96 100644 --- a/nixos/common/global/ssh.nix +++ b/nixos/common/global/ssh.nix @@ -6,7 +6,9 @@ settings = { PermitRootLogin = "no"; PasswordAuthentication = false; + AllowUsers = [ "sajenim" ]; }; + ports = [ 62841 ]; openFirewall = true; }; }