Sshd, 922 port and no password auth
This commit is contained in:
parent
66ba9163cb
commit
224f3e5555
1 changed files with 8 additions and 1 deletions
|
|
@ -6,6 +6,13 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.sshd.enable {
|
config = lib.mkIf config.sshd.enable {
|
||||||
services.openssh.enable = true;
|
services.openssh = {
|
||||||
|
enable = true;
|
||||||
|
ports = [ 922 ];
|
||||||
|
settings = {
|
||||||
|
PasswordAuthentication = false;
|
||||||
|
PermitRootLogin = "no";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue