diff options
Diffstat (limited to 'hosts/tower/ssh.nix')
| -rw-r--r-- | hosts/tower/ssh.nix | 16 |
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 ]; +} |
