aboutsummaryrefslogtreecommitdiff
path: root/hosts/tower/ssh.nix
diff options
context:
space:
mode:
authorIsabella Bastaja <isabella@sorre.xyz>2026-08-18 20:07:35 +0200
committerIsabella Bastaja <isabella@sorre.xyz>2026-08-20 22:00:12 +0200
commitdcd2c4c4d71161301a956b7e4777b499f5010e74 (patch)
tree91945b57a045cb79bd83e58e898f28c3a626c53c /hosts/tower/ssh.nix
parentb57bf02455c97a70efb22c6c7805f4df87c8b998 (diff)
tower: init
Diffstat (limited to 'hosts/tower/ssh.nix')
-rw-r--r--hosts/tower/ssh.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/hosts/tower/ssh.nix b/hosts/tower/ssh.nix
new file mode 100644
index 0000000..13da162
--- /dev/null
+++ b/hosts/tower/ssh.nix
@@ -0,0 +1,16 @@
+{ ... }:
+{
+ services.openssh = {
+ enable = true;
+ ports = [ 52222 ];
+ settings = {
+ PermitRootLogin = "no";
+ PasswordAuthentication = false;
+ AllowUsers = [
+ "isabella"
+ ];
+ };
+ };
+
+ networking.firewall.allowedTCPPorts = [ 52222 ];
+}