ssh service and npins update
This commit is contained in:
parent
f4be9842c5
commit
70839731e1
4 changed files with 23 additions and 20 deletions
12
modules/ssh.nix
Normal file
12
modules/ssh.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
services.openssh.enable = true;
|
||||
services.openssh.ports = [ 22 ];
|
||||
services.openssh.settings.PermitRootLogin = "yes";
|
||||
services.openssh.settings.AllowUsers = [ "root" ];
|
||||
|
||||
# Firewall
|
||||
services.openssh.openFirewall = false;
|
||||
networking.firewall.interfaces."tailscale0".allowedTCPPorts = [
|
||||
22
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue