Compare commits
2 commits
f7eaef0d18
...
2851273d18
Author | SHA1 | Date | |
---|---|---|---|
b12f | 2851273d18 | ||
Benjamin Yule Bädorf | b1519c8f22 |
|
@ -1,6 +1,10 @@
|
|||
{ pkgs, ... }: {
|
||||
{ pkgs, lib, ... }: {
|
||||
# Don't expose SSH via public interfaces
|
||||
networking.firewall.interfaces.wg-ssh.allowedTCPPorts = [ 22 ];
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
openFirewall = lib.mkDefault false;
|
||||
settings = {
|
||||
PermitRootLogin = "prohibit-password";
|
||||
PasswordAuthentication = false;
|
||||
|
|
Loading…
Reference in a new issue