rico2: configure ssh server

This commit is contained in:
Adithya 2023-06-02 16:53:09 +05:30
parent 7e1fc9faa9
commit 5bba15fe7f
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
2 changed files with 10 additions and 2 deletions

View file

@ -1,4 +1,3 @@
{...}: {
imports = [./caddy.nix ./frpc.nix];
services.openssh.enable = true;
imports = [./caddy.nix ./frpc.nix ./ssh.nix];
}

View file

@ -0,0 +1,9 @@
{ ... }: {
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
};
};
}