Skip to content

Instantly share code, notes, and snippets.

View MichaelEischer's full-sized avatar

Michael Eischer MichaelEischer

  • Erlangen, Germany
View GitHub Profile
@MichaelEischer
MichaelEischer / docker_host_chained_ssh.md
Last active February 2, 2024 15:15
Chain host sshd to GitLab container

Chain host sshd to GitLab container

The GitLab container comes with an embedded ssh daemon to provide secure access to the git repositories. This ssh daemon inside the container must be accessible via the ssh port (Port 22) of the host machine. However, this usually conflicts with the ssh daemon run by the host machine.

This document describes how the host and the container ssh can be chained to work nevertheless.