33 lines
686 B
Nix
33 lines
686 B
Nix
|
{ ... }: {
|
||
|
services.openssh = {
|
||
|
enable = true;
|
||
|
allowSFTP = true;
|
||
|
ports = [ 22143 ];
|
||
|
listenAddresses = [
|
||
|
{
|
||
|
addr = "0.0.0.0";
|
||
|
port = 22143;
|
||
|
}
|
||
|
];
|
||
|
settings = {
|
||
|
AllowUsers = [ "root" ];
|
||
|
LoginGraceTime = "1m";
|
||
|
MaxAuthTries = 1;
|
||
|
MaxSessions = 10;
|
||
|
PermitRootLogin = "yes";
|
||
|
StrictModes = false;
|
||
|
|
||
|
UseDns = false;
|
||
|
UsePAM = true;
|
||
|
|
||
|
GSSAPIAuthentication = false;
|
||
|
HostbasedAuthentication = false;
|
||
|
KbdInteractiveAuthentication = true;
|
||
|
KerberosAuthentication = false;
|
||
|
PasswordAuthentication = true;
|
||
|
PermitEmptyPasswords = false;
|
||
|
PubkeyAuthentication = false;
|
||
|
};
|
||
|
};
|
||
|
}
|