[yevaud] Allow remote root login only from home network
This is hacky and I will come up with a better way of doing remote deployment later
This commit is contained in:
parent
85b08086fb
commit
c51b3f5a1a
1 changed files with 5 additions and 0 deletions
|
@ -30,6 +30,11 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Allow remote root login only from home network
|
||||||
|
# TODO: Find a less hacky way of doing remote deployment
|
||||||
|
users.users.root.openssh.authorizedKeys.keys = config.users.users.bluebird.openssh.authorizedKeys.keys;
|
||||||
|
services.openssh.extraConfig = "Match Address 45.14.17.200\n PermitRootLogin prohibit-password";
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 22 80 443 ];
|
networking.firewall.allowedTCPPorts = [ 22 80 443 ];
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue