summaryrefslogtreecommitdiff
path: root/ssh.nix
diff options
context:
space:
mode:
authorAlexander Kassouni <alex@kassouni.net>2026-09-26 23:20:05 -0700
committerAlexander Kassouni <alex@kassouni.net>2026-09-26 23:20:05 -0700
commit16f9d31eb625195c5273d86ff6660abe5fac3f58 (patch)
treec195cf03c4b0589722f816a369a73cb7c2ee05b4 /ssh.nix
parent345810a7c6a2cf2b10c5f55afab9594d53eabe0f (diff)
move ssh port
Diffstat (limited to 'ssh.nix')
-rw-r--r--ssh.nix16
1 files changed, 16 insertions, 0 deletions
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;
+ };
+ };
+}