Re:Show HN: Run SSH and HTTP(S) on the same port
by thedufer on Wednesday January 21, 2015 @09:54PM
(#8927282)
I haven't read it too carefully but typically something like this would be done by having one program run on the port in question and then it would determine which protocol a given connection is speaking and hand it off to a different port based on config. So your https and ssh servers run on, say, 2000 and 3000 and the protocol recognizer runs on 443 and hands off connections to either 2000 or 3000. See, for example, reverse-proxying with nginx or haproxy.
[ Parent
| on HN ]
Re:Show HN: Run SSH and HTTP(S) on the same port
by antoaravinth on Thursday January 22, 2015 @04:21AM
(#8928275)
Ya I guess this is the way that they would have implemented.