As you already read in the title I am currently running
multiple docker containers which are used as git servers and normally should run under
port 22. This is obviously not working, but my requests would be the
following.
Have the following available on port
22:
- git@HOST -
redirected to gitlab docker container - bitbucket@HOST -
redirected to bitbucket container - root@HOST - ( I am not
working as root at all, but for understanding reasons ) normal SSH Access to the Docker
Mainhost.
I know that I
would have to sync ssh keys across containers and accounts, but this would not be a big
issue, but I have no Idea if it would be possible to build an redirect
system.
One approach of mine would be to use
ForceCommand but I would not be able to Redirect the SSH Key
used...
Another idea would be to have
a small tool on port 22 running which just routes the complete requests between all SSH
daemons, but I have not (yet?) found such a tool and do not know if it would be possible
to build such a tool for security reasons.
Comments
Post a Comment