Connection closed by host 22

Hello,
Environment:

  • Kubernetes Cluster: OVH Managed
  • GitLab: 17.8.1, self-hosted on Kubernetes
  • Traefik: Version 3, deployed using the Helm chart

After updating the Traefik Helm chart from version 21.2.0 (app 2.9.8) to 34.1.0 (app 3.3.2), I am no longer able to connect to GitLab via SSH.

The problem began with Helm chart version 28.0.0, which introduced Traefik 3.0.0. Since then, SSH access to GitLab has been broken.

The configuration for the GitLab SSH service remains consistent, with only minor changes in the Helm chart. Here is the relevant configuration:

gitlab-ssh:
    port: 8022
    expose:
      default: true
    exposedPort: 22
    protocol: TCP

and always when I clone a project I have an error:

git clone git@git.mydomain.fr:test/test.git
Cloning into 'test'...
Connection closed by IP port 22
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

If anyone has insights or suggestions for troubleshooting/fixing this issue, they would be greatly appreciated!

Thank you for your time and support!

Did you check the Traefik Migration Guide: From v2 to v3 and Configuration Changes ?

Yes, but I didn't find anything about ssh port 22. there is something related to the tcp but no solution for instance founded

Has anyone faced this issue? If so, is there an example of how to implement this with Kubernetes and the Traefik chart to listen on port 22 ?

Thanks

If you don't get an answer here, you could try www.reddit.com/r/Traefik/.

1 Like