add ssh config and authorized keys

This commit is contained in:
Ilan Joselevich
2023-05-15 23:44:20 +03:00
parent 68840dc3bb
commit 7ddc09d5da
3 changed files with 16 additions and 2 deletions

10
profiles/ssh.nix Normal file
View File

@@ -0,0 +1,10 @@
{
services.openssh = {
enable = true;
settings = {
passwordAuthentication = false;
kbdInteractiveAuthentication = false;
permitRootLogin = "no";
};
};
}