tin vip vai lon
This commit is contained in:
parent
5760ed4067
commit
4737199992
10 changed files with 148 additions and 110 deletions
21
modules/services/openssh.nix
Normal file
21
modules/services/openssh.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{ ... }:
|
||||
{
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
ports = [ 15523 ];
|
||||
authorizedKeysInHomedir = true;
|
||||
authorizedKeysFiles = [ "/home/asakiyuki/.ssh/authorized_keys" ];
|
||||
settings = {
|
||||
AllowUsers = [
|
||||
"asakiyuki"
|
||||
"junko"
|
||||
];
|
||||
PasswordAuthentication = true;
|
||||
KbdInteractiveAuthentication = false;
|
||||
AllowAgentForwarding = false;
|
||||
AllowStreamLocalForwarding = false;
|
||||
X11Forwarding = false;
|
||||
PermitRootLogin = "no";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in a new issue