rico2: configure ssh server
This commit is contained in:
parent
7e1fc9faa9
commit
5bba15fe7f
2 changed files with 10 additions and 2 deletions
|
@ -1,4 +1,3 @@
|
||||||
{...}: {
|
{...}: {
|
||||||
imports = [./caddy.nix ./frpc.nix];
|
imports = [./caddy.nix ./frpc.nix ./ssh.nix];
|
||||||
services.openssh.enable = true;
|
|
||||||
}
|
}
|
||||||
|
|
9
hosts/rico2/services/ssh.nix
Normal file
9
hosts/rico2/services/ssh.nix
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{ ... }: {
|
||||||
|
services.openssh = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
PermitRootLogin = "no";
|
||||||
|
PasswordAuthentication = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue