20 lines
389 B
Nix
20 lines
389 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
# enable the openssh daemon
|
|
services.openssh = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
ports = [ 666 ];
|
|
|
|
settings = {
|
|
AuthenticationMethods = "publickey";
|
|
KbdInteractiveAuthentication = false;
|
|
MaxAuthTries = 5;
|
|
PasswordAuthentication = false;
|
|
PermitRootLogin = "no";
|
|
X11Forwarding = false;
|
|
};
|
|
};
|
|
}
|