1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
{...}: { services.openssh = { enable = true; allowSFTP = false; openFirewall = false; settings = { PermitRootLogin = "no"; }; hostKeys = [ { path = "/srv/var/lib/sshd/ssh_host_ed25519_key"; rounds = 1000; type = "ed25519"; } ]; }; }