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 = { services.openssh = {
enable = true; enable = true;
openFirewall = true; openFirewall = lib.mkDefault true;
settings = { settings = {
PermitRootLogin = lib.mkForce "no"; PermitRootLogin = lib.mkForce "no";
PasswordAuthentication = false; PasswordAuthentication = false;

View File

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