summaryrefslogtreecommitdiff
path: root/modules/server/ssh.nix
blob: dd918433f6d5e2fd48c90e60b08c08f3438fb956 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ ... }:
{
  services.eternal-terminal.enable = true;
  programs.mosh.enable = true;
  services.openssh = {
    enable = true;
    settings.PermitRootLogin = "prohibit-password";
    settings.PasswordAuthentication = false;
  };

  networking.firewall.allowedTCPPorts = [ 22 2020 ];
  users.users.root.openssh.authorizedKeys.keys = [
    "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJl9iYG5oHBq/poBn7Jf1/FGWWbAnbx+NKjs7qtT3uAK 0xa@toaster 2024-12-31"
  ];
}