Moved all to moduler
This commit is contained in:
parent
72dafab57f
commit
70b6634137
41 changed files with 35 additions and 52 deletions
17
moduler/openssh.nix
Normal file
17
moduler/openssh.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
# Enable the OpenSSH daemon.
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
AuthenticationMethods = "publickey password";
|
||||
TrustedUserCAKeys = "/etc/ssh/ssh_ca.pub";
|
||||
X11Forwarding = true;
|
||||
Banner = "none";
|
||||
PasswordAuthentication = true;
|
||||
# PasswordAuthentication = false;
|
||||
PubKeyAuthentication = true;
|
||||
Port = 22;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue