I recently installed Gitlab via the docker image on one of my servers. I set it up such that the host server has SSH running on port 8022 so that traffic meant for gitlab is forwarded to the gitlab container without having to remap ports in gitlab. But, I cannot push/pull/fetch from the hosted repositoryand I cannot SSH into the container. I am always seeing ‘Connection refused’.
Given that I can see SSHD running in the container (docker exec into the container and run lsod | grep sshd), I would expect that I should be able to access it via ssh.
Here’s a screenshot of attempting to manually SSH in to the container with debug. It doesn’t say much to me, but perhaps it does to someone else:
I’ve attempted a number of things. I’ve attempted different ports, I’ve changed the ‘gitlab_shell_ssh_port’ in the gitlab.rb, I’ve added various different ssh keys to my account… all result in ‘connection refued’.
Am I missing a setting?