From 16f9d31eb625195c5273d86ff6660abe5fac3f58 Mon Sep 17 00:00:00 2001 From: Alexander Kassouni Date: Sat, 26 Sep 2026 23:20:05 -0700 Subject: move ssh port --- ssh.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 ssh.nix (limited to 'ssh.nix') diff --git a/ssh.nix b/ssh.nix new file mode 100644 index 0000000..9d0c84a --- /dev/null +++ b/ssh.nix @@ -0,0 +1,16 @@ +{...}:{ + services.fail2ban.enable = true; + + services.openssh = { + enable = true; + ports = [26802]; + authorizedKeysInHomedir = false; + settings = { + PasswordAuthentication = false; + PermitRootLogin = "no"; + AllowUsers = [ "kassouni" "git" ]; + KbdInteractiveAuthentication = false; + PubkeyAuthentication = true; + }; + }; +} -- cgit v1.3.1