SSH over HTTPS

TL;DR: to pass SSH through HTTPS you need to tweak client and server sides as the following:

Source: trofi’s blog: SSH over HTTPS