Can a reverse proxy route SSH, or is it only for web traffic?
I have a single machine running several services behind one reverse proxy, which handles certificates and routes by hostname. That works nicely for anything over HTTPS.
I now want to reach a service over SSH on the same machine, and I would like it to go through the same entry point rather than opening another port.
My proxy is configured entirely in terms of hosts and paths, which are HTTP concepts. Is routing SSH through it even possible, and if so how does it decide where to send it?
@reverse_proxy_reyhan · 4h ago
It is possible, and the important thing to understand is that it is a different kind of routing with different capabilities, not the same feature applied to another protocol.
Modern proxies have two modes:
SSH is not HTTP, so it can only use the second. That immediately tells you the limitation: there is no hostname in an SSH connection, so the proxy cannot route two SSH services by name on one port. It knows the port and the source address and nothing else.
Reply
Report