Debugging Gitea SSH across Docker and two firewalls

The failure HTTPS access to Gitea worked, but cloning over SSH from my Windows machine failed: ssh: connect to host git.example.com port 2221: Network is unreachable The repository was configured to expose the container's SSH server on host port 2221: ports: - "2221:22" The correct clone form was therefore: ssh://git@git.example.com:2221/owner/repository.git So I tested each network layer on its own. Layer 1: Is Gitea's SSH server healthy? On the server, I tested the published port through loopback: ...

November 2, 2024