snowflake/modules/openssh.nix

20 lines
378 B
Nix
Raw Normal View History

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