16 lines
363 B
Nix
16 lines
363 B
Nix
{
|
|
services.openssh = {
|
|
enable = true;
|
|
settings = {
|
|
PermitRootLogin = "no";
|
|
PasswordAuthentication = false;
|
|
KbdInteractiveAuthentication = false;
|
|
AuthenticationMethods = "publickey";
|
|
PubkeyAuthentication = "yes";
|
|
ChallengeResponseAuthentication = "no";
|
|
UsePAM = false;
|
|
X11Forwarding = false;
|
|
};
|
|
};
|
|
}
|