Let me explain what I'm trying to do ; first, I don't want a solution like editing .ssh/config
to write a default port for specific domains client side, my question is specific to server side :)
The context
On a distant server, I got the SSH service running on port 22. But I have a Docker service that want to expose its own SSH service. I cannot bind container:22 on host:22 (conflict), so I bind container:22 on host:2222.
But, on my company network, network traffic on port 2222 is locked.
The question
How, on the distant server, accept SSH connexion on port 22 by default, AND redirect on another port internally in function of domain or sub-domain called ?
Not sure a simple Nginx proxy will work for SSH protocol...
Thanks !
0 Answers