nix-config/modules/server/ssh.nix

12 lines
222 B
Nix
Raw Normal View History

2023-06-01 20:33:05 +02:00
{ ... }:
{
programs.mosh.enable = true;
services.openssh = {
enable = true;
2023-08-05 21:06:23 +02:00
settings.PermitRootLogin = "no";
settings.PasswordAuthentication = false;
2023-06-01 20:33:05 +02:00
};
networking.firewall.allowedTCPPorts = [ 22 ];
}