From 9530f26505404a2debfcbd4b4195627adcf07380 Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Tue, 30 May 2023 22:44:35 +0200 Subject: [PATCH] change the vps ssh port --- hosts/falkenstein-1/default.nix | 2 ++ users/rouven/modules/ssh/default.nix | 1 + 2 files changed, 3 insertions(+) diff --git a/hosts/falkenstein-1/default.nix b/hosts/falkenstein-1/default.nix index 6293db3..d17e28f 100644 --- a/hosts/falkenstein-1/default.nix +++ b/hosts/falkenstein-1/default.nix @@ -49,6 +49,8 @@ # Enable the OpenSSH daemon. services.openssh = { enable = true; + # clean up the logs a bit + ports = [ 2222 ]; settings.PasswordAuthentication = false; }; users.users.root.openssh.authorizedKeys.keyFiles = [ diff --git a/users/rouven/modules/ssh/default.nix b/users/rouven/modules/ssh/default.nix index 1ab40bd..12d871d 100644 --- a/users/rouven/modules/ssh/default.nix +++ b/users/rouven/modules/ssh/default.nix @@ -17,6 +17,7 @@ in }; "rfive.de" = { user = "root"; + port = 2222; }; "kaki" = { hostname = "kaki.ifsr.de";