18 lines
339 B
Nix
18 lines
339 B
Nix
{ config, ... }:
|
|
{
|
|
services.openssh = {
|
|
enable = true;
|
|
|
|
settings = {
|
|
ClientAliveInterval = 300;
|
|
X11Forwarding = true;
|
|
|
|
KbdInteractiveAuthentication = false;
|
|
PasswordAuthentication = false;
|
|
PermitRootLogin = "no";
|
|
};
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = config.services.openssh.ports;
|
|
}
|