4 ms·
You should try httpssh https://pkg.go.dev/github.com/HimbeerserverDE/httpssh https://pkg.go.dev/github.com/HimbeerserverDE/httpssh > httpssh listens for HTTP(
by j16sdiz 3y ago
You should try httpssh
https://pkg.go.dev/github.com/HimbeerserverDE/httpssh https://pkg.go.dev/github.com/HimbeerserverDE/httpssh
> httpssh listens for HTTP(S) and SSH connections on the same port and forwards the traffic to the corresponding service.
- hackernudes 3y agoThe article mentions sslh which works like httpssh. It also possible to achieve this with haproxy like this: frontend https bind *:443 mode tcp tcp-request inspect-delay 2s use_backend https_loopback if { req.ssl_ver gt 0 } default_backend ssh Another option is to use TLS SNI (Server Name Indication) like a virtualhost-style ssh server (https://www.haproxy.com/blog/route-ssh-connections-with-haproxy https://www.haproxy.com/blog/route-ssh-connections-with-hapr...). You can use the 'openssl' command in your ProxyCommand which is pretty readily available.