From 23737baff39c2f69e3176c41380ffbf89116716b Mon Sep 17 00:00:00 2001 From: hodasemi Date: Thu, 22 May 2025 10:01:45 +0200 Subject: [PATCH] Use port 23 for ssh --- flake.nix | 4 ++-- setup/mini_conf.nix | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index e6a9d7c..ac10690 100644 --- a/flake.nix +++ b/flake.nix @@ -58,7 +58,7 @@ { deployment = { targetHost = "157.90.133.118"; - targetPort = 22; + targetPort = 23; targetUser = "root"; }; imports = [ @@ -84,7 +84,7 @@ { deployment = { targetHost = "88.99.218.181"; - targetPort = 22; + targetPort = 23; targetUser = "root"; }; imports = [ diff --git a/setup/mini_conf.nix b/setup/mini_conf.nix index 5b98d0f..d53bd14 100644 --- a/setup/mini_conf.nix +++ b/setup/mini_conf.nix @@ -41,7 +41,10 @@ pkgs.gitMinimal ]; - services.openssh.enable = true; + services.openssh = { + enable = true; + ports = [ 23 ]; + }; users.users.root.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBA4Kpx7RN53V3uINjRj1Ow7p8/SkKGOnqHG3BR9tNXU cardno:25_310_930" # add yours