snowflake/modules/openssh.nix

20 lines
420 B
Nix
Raw Normal View History

2023-04-26 19:23:23 -04:00
{...}: {
services.openssh = {
enable = true;
settings = {
2023-04-26 21:21:46 -04:00
KbdInteractiveAuthentication = false;
2023-04-26 19:23:23 -04:00
PasswordAuthentication = false;
2023-04-26 19:26:28 -04:00
PubkeyAuthentication = true;
2023-04-26 22:08:57 -04:00
PermitRootLogin = "no";
2023-04-26 19:23:23 -04:00
StreamLocalBindUnlink = "yes";
GatewayPorts = "clientspecified";
};
hostKeys = [
{
path = "/etc/ssh/ssh_host_ed25519_key";
type = "ed25519";
}
];
};
}