Re:Show HN: Run SSH and HTTP(S) on the same port
by shanemhansen on Wednesday January 21, 2015 @06:30PM
(#8926508)
A little known fact is that newer versions of openssh support ProxyUseFDPass which allows you to do some protocol negotiation before passing the socket onto to the regular client. http://www.openssh.com/txt/release-6.5
I think this could also potentially be done via iptables rules as well, since iptables is capable of inspecting & rerouting packets.