15 lines
241 B
Nix
15 lines
241 B
Nix
{
|
|
services.openssh = {
|
|
enable = true;
|
|
allowSFTP = true;
|
|
settings = {
|
|
PasswordAuthentication = false;
|
|
KbdInteractiveAuthentication = false;
|
|
};
|
|
};
|
|
|
|
networking.firewall = {
|
|
allowedTCPPorts = [ 22 ];
|
|
};
|
|
}
|