nixos-config/sets/sshd.nix

23 lines
513 B
Nix
Raw Normal View History

2020-04-11 21:47:33 +00:00
{ config, pkgs, ... }:
{
services.openssh = {
enable = true;
2021-09-18 17:44:53 +00:00
permitRootLogin = "no";
2020-04-11 21:47:33 +00:00
passwordAuthentication = false;
2022-05-31 04:42:46 +00:00
kbdInteractiveAuthentication = false;
2022-08-30 16:15:54 +00:00
kexAlgorithms = [
"sntrup761x25519-sha512@openssh.com"
"curve25519-sha256"
"curve25519-sha256@libssh.org"
];
macs = [
"hmac-sha2-512-etm@openssh.com"
"hmac-sha2-256-etm@openssh.com"
"umac-128-etm@openssh.com"
];
2020-04-11 21:47:33 +00:00
};
# users.users.artemis.openssh.authorizedKeys.keys set in private
}