mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-04 09:46:50 +01:00
Some ssh changes
This commit is contained in:
parent
5dd2fb403d
commit
6a3869996b
1 changed files with 3 additions and 1 deletions
|
@ -12,9 +12,11 @@ in
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
ports = [ 22 ];
|
||||||
|
openFirewall = true;
|
||||||
settings = {
|
settings = {
|
||||||
X11forwarding = true;
|
X11forwarding = true;
|
||||||
PermitRootLogin = "yes";
|
PermitRootLogin = "no";
|
||||||
passwordAuthentication = false;
|
passwordAuthentication = false;
|
||||||
kbdInteractiveAuthentication = false;
|
kbdInteractiveAuthentication = false;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue