Added openssh config
This commit is contained in:
parent
e1ef462802
commit
ad5bbf864f
1 changed files with 16 additions and 0 deletions
16
shared/openssh.nix
Normal file
16
shared/openssh.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ config, pkgs, ...}:
|
||||
{
|
||||
# Enable the OpenSSH daemon.
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
AuthenticationMethods = "publickey password";
|
||||
TrustedUserCAKeys = "/etc/ssh/ssh_ca.pub";
|
||||
Banner = "none";
|
||||
PasswordAuthentication = true;
|
||||
# PasswordAuthentication = false;
|
||||
PubKeyAuthentication = true;
|
||||
Port = 22;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue