proper ssh port

This commit is contained in:
2026-01-22 12:10:02 -06:00
parent 128a560bb0
commit 6dfacb91da
2 changed files with 3 additions and 7 deletions

View File

@@ -11,7 +11,7 @@
services.openssh = {
enable = true;
openFirewall = true;
openFirewall = lib.mkDefault true;
settings = {
PermitRootLogin = lib.mkForce "no";
PasswordAuthentication = false;

View File

@@ -17,12 +17,8 @@
"gitea/dbpass" = {};
};
services.openssh.ports = [
2222
];
networking.firewall.allowedTCPPorts = [
22
2222
];
containers.gitea = {
@@ -35,7 +31,7 @@
forwardPorts = [
{
containerPort = 22;
hostPort = 22;
hostPort = 2222;
}
];