16 lines
261 B
Nix
16 lines
261 B
Nix
|
{ ... }:
|
||
|
{
|
||
|
services.openssh = {
|
||
|
enable = true;
|
||
|
startWhenNeeded = true;
|
||
|
ports = [ 2222 ];
|
||
|
openFirewall = true;
|
||
|
|
||
|
settings = {
|
||
|
AllowUsers = [ "tdback" ];
|
||
|
PermitRootLogin = "no";
|
||
|
PasswordAuthentication = false;
|
||
|
};
|
||
|
};
|
||
|
}
|